Skip to content

Commit

Permalink
PATH_MAX has never been spotted in Windows :)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15098 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 7, 2013
1 parent f066c75 commit a197293
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SimulationRuntime/c/ModelicaExternalC/ModelicaInternal.c
Expand Up @@ -124,6 +124,10 @@ void ModelicaNotExistError(const char* name) {
# include <dirent.h>
# endif

#if !defined(PATH_MAX)
#define PATH_MAX MAX_PATH
#endif

#define BUFFER_LENGTH PATH_MAX
char buffer[BUFFER_LENGTH]; /* Buffer for temporary storage */

Expand Down

0 comments on commit a197293

Please sign in to comment.