Update MSVC path max.

This commit is contained in:
Christoffer Lerno
2021-10-19 18:23:01 +02:00
committed by Christoffer Lerno
parent 8e93642535
commit 6c9b5fd30d
2 changed files with 2 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ A `c3c` executable will be found under `bin/`.
#### Installing on OS X using Homebrew
2. Install CMake: `brew install cmake`
3. Install LLVM 11: `brew install llvm`
3. Install LLVM 13: `brew install llvm`
4. Clone the C3C github repository: `git clone https://github.com/c3lang/c3c.git`
5. Enter the C3C directory `cd c3c`.
6. Create a build directory `mkdir build`

View File

@@ -29,11 +29,8 @@ File *source_file_load(const char *filename, bool *already_loaded)
if (already_loaded) *already_loaded = false;
if (!source_files.files) source_files.files = VECNEW(File *, LEXER_FILES_START_CAPACITY);
#ifdef _MSC_VER
char* full_path = malloc_arena(MAX_PATH + 1);
#else
char* full_path = malloc_arena(PATH_MAX + 1);
#endif
if (!realpath(filename, full_path))
{
error_exit("Failed to resolve %s", filename);