From 3a4edf4d1e4a66a83ac39d066c02bfffea4dccf8 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Wed, 10 Mar 2010 17:12:37 +0100 Subject: 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. --- lib/wx/api_gen/wx_gen_cpp.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/wx/api_gen/wx_gen_cpp.erl') 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 ~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"). -- cgit v1.2.3