ZenLib
Conf_Internal.h
Go to the documentation of this file.
00001 // ZenLib::Conf_Internal - To be independant of platform & compiler
00002 // Copyright (C) 2007-2011 MediaArea.net SARL, Info@MediaArea.net
00003 //
00004 // This software is provided 'as-is', without any express or implied
00005 // warranty.  In no event will the authors be held liable for any damages
00006 // arising from the use of this software.
00007 //
00008 // Permission is granted to anyone to use this software for any purpose,
00009 // including commercial applications, and to alter it and redistribute it
00010 // freely, subject to the following restrictions:
00011 //
00012 // 1. The origin of this software must not be misrepresented; you must not
00013 //    claim that you wrote the original software. If you use this software
00014 //    in a product, an acknowledgment in the product documentation would be
00015 //    appreciated but is not required.
00016 // 2. Altered source versions must be plainly marked as such, and must not be
00017 //    misrepresented as being the original software.
00018 // 3. This notice may not be removed or altered from any source distribution.
00019 //
00020 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00021 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00022 
00023 //---------------------------------------------------------------------------
00024 #ifndef ZenConf_InternalH
00025 #define ZenConf_InternalH
00026 //---------------------------------------------------------------------------
00027 
00028 #include "ZenLib/Conf.h"
00029 
00030 //***************************************************************************
00031 // Choice of method
00032 //***************************************************************************
00033 
00034 #ifndef ZENLIB_USEWX
00035     #ifdef WINDOWS
00036     #else
00037         #define ZENLIB_STANDARD //We select the C/C++ standard as much as possible
00038     #endif
00039 #endif //ZENLIB_USEWX
00040 
00041 //***************************************************************************
00042 // Default values
00043 //***************************************************************************
00044 
00045 #ifndef _LARGE_FILES
00046     #define _LARGE_FILES
00047 #endif //_LARGE_FILES
00048 
00049 //***************************************************************************
00050 // Includes
00051 //***************************************************************************
00052 
00053 //---------------------------------------------------------------------------
00054 //Useful for precompiled headers
00055 #ifdef ZENLIB_USEWX
00056     #ifndef __BORLANDC__ //Borland C++ does NOT support large files
00057         #ifndef _FILE_OFFSET_BITS
00058             #define _FILE_OFFSET_BITS 64
00059         #endif //_FILE_OFFSET_BITS
00060         #ifndef _LARGE_FILES
00061             #define _LARGE_FILES
00062         #endif //_LARGE_FILES
00063         #ifndef _LARGEFILE_SOURCE
00064             #define _LARGEFILE_SOURCE 1
00065         #endif //_LARGEFILE_SOURCE
00066     #endif //__BORLANDC__
00067     #ifdef __BORLANDC__
00068         #include <mem.h> //memcpy
00069     #endif //__BORLANDC__
00070     #include <wx/wxprec.h>
00071 #else //ZENLIB_USEWX
00072     #if defined(__VISUALC__) || defined(__BORLANDC__)
00073         #if defined WINDOWS && !defined ZENLIB_STANDARD
00074             #undef __TEXT
00075             #include <windows.h>
00076         #endif //WINDOWS
00077         #include <algorithm>
00078         #include <cmath>
00079         #include <complex>
00080         #include <cstdio>
00081         #include <cstdlib>
00082         #include <cstring>
00083         #include <ctime>
00084         #include <fstream>
00085         #include <functional>
00086         #include <iomanip>
00087         #include <map>
00088         #include <memory>
00089         #include <sstream>
00090         #include <stack>
00091         #include <string>
00092     #endif //defined(__VISUALC__) || defined(__BORLANDC__)
00093 #endif //ZENLIB_USEWX
00094 
00095 #endif
00096