I'm writing a program for unix and windows, I need definition for folder separator like this: #define FOLDER_SEPARATOR "/", I need to understand at compile time, which system is working, how I can understand this?
I need something like this:
 #if defdefine WINDOWS
 #define FOLDER_SEPARATOR "\"
 #elif defined UNIX
 #define FOLDER_SEPARATOR "/"
 #endif
Tell me, is there something like that in the C language, now I'm writing under gcc and use plain Makefile, but I need something cross-platform.
 
     
    