https://github.com/JuliaLang/julia
Raw File
Tip revision: fb57c819dfebc426e1135caa562afa2fa0773358 authored by Lilith Orion Hafner on 23 May 2024, 20:31:36 UTC
Fix preexisting typo
Tip revision: fb57c81
dirpath.h
// This file is a part of Julia. License is MIT: https://julialang.org/license

#ifndef JL_DIRPATH_H
#define JL_DIRPATH_H

#ifdef _OS_WINDOWS_
#define PATHSEPSTRING "\\"
#define PATHLISTSEPSTRING ";"
#if defined(PATH_MAX)
#define JL_PATH_MAX PATH_MAX
#else // _COMPILER_CLANG_ may have the name reversed
#define JL_PATH_MAX MAX_PATH
#endif
#else
#define PATHSEPSTRING "/"
#define PATHLISTSEPSTRING ":"
#if defined(PATH_MAX)
#define JL_PATH_MAX PATH_MAX
#else // many platforms don't have a max path, we define one anyways
#define JL_PATH_MAX 1024
#endif
#endif

#endif
back to top