00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _WGUI_INCLUDE_CONFIG_H_
00026 #define _WGUI_INCLUDE_CONFIG_H_
00027
00028 #include <string>
00029 #include <stdlib.h>
00030 #include "std_ex.h"
00031
00032 #ifdef WIN32
00033
00034 #include "wgui_win32_config.h"
00035
00036 #ifndef DEBUG
00037
00038 #pragma warning (disable : 4702)
00039 #endif // DEBUG
00040
00041 #ifdef MSVC6
00042
00043 #define min _MIN
00044 #define max _MAX
00045 #pragma warning (disable : 4786)
00046 #endif // MSVC6
00047
00048 #include <stdlib.h>
00049
00050 static const std::wstring GLOBAL_CONFIG_PATH = stdex::ToWString(getenv("windir")).substr(0, 1) + L":\\program files\\common files\\wgui\\";
00051 static const std::wstring USER_CONFIG_PATH = stdex::ToWString(getenv("windir")).substr(0, 1) + L":\\documents and settings\\" + stdex::ToWString(getenv("USERNAME")) + L"\\application data\\wgui\\";
00052 #else // WIN32
00053
00054 #include "wgui_config.h"
00055
00056
00057 static const std::wstring GLOBAL_CONFIG_PATH = L"/etc/wgui/";
00058
00059 static const std::wstring USER_CONFIG_PATH = stdex::ToWString(getenv("HOME")) + L"/.wgui/";
00060 #endif // WIN32
00061
00062 #endif // _WGUI_INCLUDE_CONFIG_H_