Define wxFSW_EVENT_UNMOUNT if needed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-11-19 18:19:05 +00:00
parent db9351e83a
commit b42ab9180a

View File

@@ -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 <wx/fswatcher.h>')
module.addHeaderCode("""
#include <wx/fswatcher.h>
#ifndef wxHAS_INOTIFY
#define wxFSW_EVENT_UNMOUNT 0x2000
#endif
""")
c = module.find('wxFileSystemWatcher')
assert isinstance(c, etgtools.ClassDef)