1 // celestia.h 2 // 3 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net> 4 // 5 // This program is free software; you can redistribute it and/or 6 // modify it under the terms of the GNU General Public License 7 // as published by the Free Software Foundation; either version 2 8 // of the License, or (at your option) any later version. 9 10 #ifndef _CELESTIA_H_ 11 #define _CELESTIA_H_ 12 13 #ifdef _MSC_VER 14 15 #define BROKEN_FRIEND_TEMPLATES 16 #define snprintf _snprintf 17 18 #if _MSC_VER >= 1000 19 // Make VC shut up about long variable names from templates 20 #pragma warning(disable : 4786) 21 #endif // _MSC_VER 22 23 #endif // _MSC_VER 24 25 26 #define HAVE_SSTREAM 27 #ifdef __GNUC__ 28 #undef HAVE_SSTREAM 29 #define NONSTANDARD_STRING_COMPARE 30 #endif // __GNUC__ 31 32 #ifndef _WIN32 33 #ifndef TARGET_OS_MAC 34 #include <config.h> 35 #endif /* TARGET_OS_MAC */ 36 #endif /* _WIN32 */ 37 38 39 40 #endif // _CELESTIA_H_ 41 42