1 // Copyright (C) 2006 Davis E. King (davis@dlib.net) 2 // License: Boost Software License See LICENSE.txt for the full license. 3 4 #ifdef DLIB_ALL_SOURCE_END 5 #include "dlib_basic_cpp_build_tutorial.txt" 6 #endif 7 8 #ifndef DLIB_PLATFORm_ 9 #define DLIB_PLATFORm_ 10 11 12 /*! 13 This file ensures that: 14 - if (we are compiling under a posix platform) then 15 - DLIB_POSIX will be defined 16 - if (this is also Mac OS X) then 17 - MACOSX will be defined 18 - if (this is also HP-UX) then 19 - HPUX will be defined 20 - if (we are compiling under an MS Windows platform) then 21 - WIN32 will be defined 22 !*/ 23 24 25 /* 26 A good reference for this sort of information is 27 http://predef.sourceforge.net/ 28 */ 29 30 // Define WIN32 if this is MS Windows 31 #ifndef WIN32 32 #if defined( _MSC_VER) || defined(__BORLANDC__) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__) 33 #define WIN32 34 #endif 35 #endif 36 37 #ifndef WIN32 38 // since this is the only other platform the library currently supports 39 // just assume it is DLIB_POSIX if it isn't WIN32 40 #ifndef DLIB_POSIX 41 #define DLIB_POSIX 42 #endif 43 44 #ifndef HPUX 45 #if defined(__hpux ) || defined(hpux) || defined (_hpux) 46 #define HPUX 47 #endif 48 #endif 49 50 #ifndef MACOSX 51 #ifdef __MACOSX__ 52 #define MACOSX 53 #endif 54 #ifdef __APPLE__ 55 #define MACOSX 56 #endif 57 #endif 58 59 #endif 60 61 62 63 64 #endif // DLIB_PLATFORm_ 65 66