diff options
author | Dan Gudmundsson <[email protected]> | 2010-03-10 17:12:37 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-03-12 06:41:31 +0100 |
commit | 3a4edf4d1e4a66a83ac39d066c02bfffea4dccf8 (patch) | |
tree | 1e3a3d89e1418e29f94f9917d173108d5d9f9f3e /lib/wx/api_gen | |
parent | dec7bba3591097f668da46606fd8ceb28903b3ee (diff) | |
download | otp-3a4edf4d1e4a66a83ac39d066c02bfffea4dccf8.tar.gz otp-3a4edf4d1e4a66a83ac39d066c02bfffea4dccf8.tar.bz2 otp-3a4edf4d1e4a66a83ac39d066c02bfffea4dccf8.zip |
Added a non existing macro on windows.
The new code generator doesn't resolve macros and a
is missing (not used in wxWidgets) on windows.
Diffstat (limited to 'lib/wx/api_gen')
-rw-r--r-- | lib/wx/api_gen/wx_gen_cpp.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl index 9e9f8799c7..846cec46c4 100644 --- a/lib/wx/api_gen/wx_gen_cpp.erl +++ b/lib/wx/api_gen/wx_gen_cpp.erl @@ -1010,6 +1010,11 @@ gen_macros() -> w("#include <wx/filename.h>~n"), w("~n~n", []), + w("#ifndef wxICON_DEFAULT_BITMAP_TYPE~n",[]), + w(" #define wxICON_DEFAULT_BITMAP_TYPE wxBITMAP_TYPE_ICO_RESOURCE~n",[]), + w("#endif~n", []), + w("~n~n", []), + [w("#define ~s_~s ~p~n", [Class,Name,Id]) || {Class,Name,_,Id} <- wx_gen_erl:get_unique_names()], w("~n~n"). |