include: Discourage the use of CONST in Wine.
Michael Stefaniuc
mstefani at redhat.de
Fri Sep 27 02:59:20 CDT 2013
---
include/windef.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/windef.h b/include/windef.h
index 17c0fba..0fb3863 100644
--- a/include/windef.h
+++ b/include/windef.h
@@ -167,7 +167,12 @@ extern "C" {
#define _CDECL __cdecl
#define WINAPIV __cdecl
#define APIENTRY WINAPI
-#define CONST const
+
+#ifdef __WINESRC__
+# define CONST Use_const_instead_of_CONST
+#else
+# define CONST const
+#endif
/* Misc. constants. */
--
1.8.3.1
More information about the wine-patches
mailing list