/[projet1]/public/pc/tools/osdk/main/common/sources/common.cpp
Defence Force logotype

Diff of /public/pc/tools/osdk/main/common/sources/common.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1382 by dbug, Sun Oct 2 10:18:52 2016 UTC revision 1383 by mmu_man, Sun Oct 2 17:14:13 2016 UTC
# Line 23  Line 23 
23  #include <limits.h>  #include <limits.h>
24  #define stricmp strcasecmp  #define stricmp strcasecmp
25  #define _MAX_PATH PATH_MAX  #define _MAX_PATH PATH_MAX
26    #define _MAX_DRIVE 3
27    #define _MAX_DIR PATH_MAX
28    #define _MAX_FNAME NAME_MAX
29    #define _MAX_EXT NAME_MAX
30  #endif  #endif
31    
32  #include <stdio.h>  #include <stdio.h>
# Line 929  void SplitPath(const char* Path,char* Dr Line 933  void SplitPath(const char* Path,char* Dr
933  #ifdef WIN32  #ifdef WIN32
934    _splitpath(Path,Drive,Directory,Filename,Extension);    _splitpath(Path,Drive,Directory,Filename,Extension);
935  #else  #else
 #define _MAX_PATH PATH_MAX  
936  // From https://groups.google.com/forum/#!topic/gnu.gcc.help/0dKxhmV4voE  // From https://groups.google.com/forum/#!topic/gnu.gcc.help/0dKxhmV4voE
937    char* CopyOfPath = (char*) Path;    char* CopyOfPath = (char*) Path;
938    int Counter = 0;    int Counter = 0;

Legend:
Removed from v.1382  
changed lines
  Added in v.1383

  ViewVC Help
Powered by ViewVC 1.1.26