mapi: Hack to avoid vgCreateFont being generated as vgCreateFontA.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Dec 2010 19:33:41 +0000 (19:33 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Dec 2010 19:39:55 +0000 (19:39 +0000)
Right fix is probably stop C-preprocessor abuse and stick 100% with
scripted code generation.

src/mapi/mapi/stub.c

index 8ceaec3132bf36bdf873e086b501278c80e61799..53d800f3c2aac5d39dbda3a8934b53d6d519b266 100644 (file)
@@ -37,6 +37,9 @@
 #include "stub.h"
 #include "table.h"
 
+/* XXX: Hack to avoid vgCreateFont being generated as vgCreateFontA */
+#undef CreateFont
+
 #define MAPI_TABLE_FIRST_DYNAMIC \
    (offsetof(struct mapi_table, dynamic0) / sizeof(mapi_func))
 #define MAPI_TABLE_NUM_DYNAMIC \