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
00026
00027
00028 #ifndef __EWX__
00029 #define __EWX__
00030
00031 #ifdef DEBUG
00032 # define debug(x...) { fprintf(stderr,x); }
00033 #else
00034 # define debug(x...)
00035 #endif
00036
00037 #if defined(TRACE_TODO)
00038 # define TODO(x...) { \
00039 fprintf(stderr,"** TODO ** %s:%d: ", __FILE__, __LINE__); \
00040 fprintf(stderr,x); \
00041 }
00042 #else
00043 # define TODO(x...)
00044 #endif
00045
00046 #if defined(__WIN32__) || defined(__WIN95__) || defined(__WXMSW__)
00047 # define ENABLE_LC_NO_HEADER
00048 # define ENABLE_RESLIST_IN_MAIN
00049 # define MSW_RESIZE_BUG
00050 # define INCOMPLETE
00051 #else
00052 # define ENABLE_SAVE_POSTSCRIPT
00053 # define ENABLE_LOCALE
00054 # define ENABLE_RESLIST_IN_MAIN
00055 # define INCOMPLETE { std::cerr << "incomplete " << __FILE__ << " " << __LINE__ << "\n"; }
00056 #endif
00057
00058 #include "config.h"
00059 #define APPNAME "Eliot"
00060
00061
00062 #if defined( ENABLE_NLS ) && defined( ENABLE_UTF8 )
00063 # if wxUSE_UNICODE
00064 # define wxU(utf8) wxString(utf8, wxConvUTF8)
00065 # else
00066 # define wxU(utf8) wxString(wxConvUTF8.cMB2WC(utf8), *wxConvCurrent)
00067 # endif
00068 #else // ENABLE_NLS && ENABLE_UTF8
00069 # if wxUSE_UNICODE
00070 # define wxU(ansi) wxString(ansi, *wxConvCurrent)
00071 # else
00072 # define wxU(ansi) ansi
00073 # endif
00074 #endif // ENABLE_NLS && ENABLE_UTF8
00075
00076 #endif // __EWX__