From b42ab9180a3cd75782cf8346f002c0c3a527df7d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 19 Nov 2012 18:19:05 +0000 Subject: [PATCH] Define wxFSW_EVENT_UNMOUNT if needed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/fswatcher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etg/fswatcher.py b/etg/fswatcher.py index f9bf5a59..c318ea42 100644 --- a/etg/fswatcher.py +++ b/etg/fswatcher.py @@ -32,7 +32,12 @@ def run(): # Tweak the parsed meta objects in the module object as needed for # customizing the generated code and docstrings. - module.addHeaderCode('#include ') + module.addHeaderCode(""" + #include + #ifndef wxHAS_INOTIFY + #define wxFSW_EVENT_UNMOUNT 0x2000 + #endif + """) c = module.find('wxFileSystemWatcher') assert isinstance(c, etgtools.ClassDef)