home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 February / maximum-cd-2009-02.iso / DiscContents / SMC_1.6_win32.exe / src / core / global_basic.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-06  |  2.0 KB  |  77 lines

  1. /***************************************************************************
  2.  * global_basic.h  -  global header
  3.  *
  4.  * Copyright (C) 2003 - 2008 Florian Richter
  5.  ***************************************************************************/
  6. /*
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 3 of the License, or
  10.    (at your option) any later version.
  11.    
  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  14. */
  15.  
  16. #ifndef SMC_GLOBAL_BASIC_H
  17. #define SMC_GLOBAL_BASIC_H
  18.  
  19. /* *** *** *** *** *** *** *** Debugging *** *** *** *** *** *** *** *** *** *** */
  20.  
  21. #ifdef _WIN32
  22.     #ifndef __WIN32__
  23.         #define __WIN32__
  24.     #endif
  25.     #ifdef _DEBUG
  26.         // disable possible loss of data
  27.         #pragma warning ( disable : 4267 )
  28.     #endif
  29.  
  30.     // disable needs to have dll-interface to be used by clients of class 'CEGUI::TreeItem'
  31.     #pragma warning ( disable : 4251 )
  32.  
  33.     // disable Visual Studio 8 warnings
  34.     #if _MSC_VER >= 1400
  35.         #ifndef _CRT_SECURE_NO_DEPRECATE
  36.             #define _CRT_SECURE_NO_DEPRECATE
  37.         #endif
  38.         #ifndef _CRT_NON_CONFORMING_SWPRINTFS
  39.             #define _CRT_NON_CONFORMING_SWPRINTFS
  40.         #endif
  41.     #endif
  42. #endif
  43.  
  44. // debug printf macro
  45. #ifdef _DEBUG
  46.     #define debug_print(format, ...) printf(format, ##__VA_ARGS__)
  47. #else
  48.     #define debug_print(format, ...) (0)
  49. #endif
  50.  
  51. /* *** *** *** *** *** *** *** Standard setup *** *** *** *** *** *** *** *** *** *** */
  52.  
  53. #include <iostream>
  54. #include <fstream>
  55. #include <sstream>
  56. #include <string>
  57. #include <vector>
  58. #include <time.h>
  59. #include <math.h>
  60. #include <algorithm>
  61.  
  62. #ifdef _MSC_VER
  63.     #define snprintf _snprintf
  64. #endif
  65.  
  66. using std::sort;
  67. using std::string;
  68. using std::vector;
  69. using std::flush;
  70. using std::ifstream;
  71. using std::fstream;
  72. using std::ofstream;
  73. using std::stringstream;
  74. using std::ios;
  75.  
  76. #endif
  77.