Home | History | Annotate | Download | only in source
      1 #ifndef __dng_RawEnvironment__
      2 #define __dng_RawEnvironment__
      3 
      4 // Define preprocessor constants that control platform-specific conditional
      5 // compilation. The constants qMacOS and qWinOS must be defined on all
      6 // platforms. Other constants, such as qLinux, only need to be defined if we're
      7 // actually compiling for that platform.
      8 #if defined(__linux__)
      9 #define qMacOS 0
     10 #define qWinOS 0
     11 #define qLinux 1
     12 #elif defined(__APPLE__)
     13 #define qMacOS 1
     14 #define qWinOS 0
     15 #elif defined(_WIN32)
     16 #define qMacOS 0
     17 #define qWinOS 1
     18 #endif
     19 
     20 #endif  // __dng_RawEnvironment__
     21