[sodipodi] If _UNICODE also define UNICODE beforeincluding windows system headers to use the right functions/ty



commit 112b47039f19fa00eb2aa7fb7dbaa4b619264233
Author: Hans Breuer <hans breuer org>
Date:   Sat Apr 18 13:12:55 2009 +0200

    If _UNICODE also define UNICODE beforeincluding windows system headers to use the right functions/types
---
 src/libnrtype/nr-type-w32.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/libnrtype/nr-type-w32.c b/src/libnrtype/nr-type-w32.c
index 93f9bc6..8031fe6 100644
--- a/src/libnrtype/nr-type-w32.c
+++ b/src/libnrtype/nr-type-w32.c
@@ -8,7 +8,15 @@
  *
  * This code is in public domain
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h> /* _UNICODE */
+#endif
+
+#ifdef _UNICODE
+#define UNICODE
+#endif
 
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <windowsx.h>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]