]> git.saurik.com Git - wxWidgets.git/commitdiff
file which undefs symbols ocnflicting with windows.h
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 May 1999 22:44:58 +0000 (22:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 May 1999 22:44:58 +0000 (22:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/winundef.h [new file with mode: 0644]

diff --git a/include/wx/msw/winundef.h b/include/wx/msw/winundef.h
new file mode 100644 (file)
index 0000000..78a3fb5
--- /dev/null
@@ -0,0 +1,64 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        winundef.h
+// Purpose:     undefine the common symbols #define'd by <windows.h>
+// Author:      Vadim Zeitlin
+// Modified by:
+// Created:     16.05.99
+// RCS-ID:      $Id$
+// Copyright:   (c) wxWindows team
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_WINUNDEF_H_
+#define _WX_WINUNDEF_H_
+
+// windows.h #defines the following identifiers which are also used in wxWin
+#ifdef GetCharWidth
+    #undef GetCharWidth
+#endif
+
+#ifdef FindWindow
+    #undef FindWindow
+#endif
+
+#ifdef GetClassName
+    #undef GetClassName
+#endif
+
+#ifdef GetClassInfo
+    #undef GetClassInfo
+#endif
+
+#ifdef LoadAccelerators
+    #undef LoadAccelerators
+#endif
+
+#ifdef GetWindowProc
+    #undef GetWindowProc
+#endif
+
+#ifdef DrawText
+    #undef DrawText
+#endif
+
+#ifdef StartDoc
+    #undef StartDoc
+#endif
+
+#ifdef GetFirstChild
+    #undef GetFirstChild
+#endif
+
+#ifdef GetNextChild
+    #undef GetNextChild
+#endif
+
+#ifdef GetNextSibling
+    #undef GetNextSibling
+#endif
+
+#ifdef GetObject
+    #undef GetObject
+#endif
+
+#endif // _WX_WINUNDEF_H_