Mesa (master): mapi: Hack to avoid vgCreateFont being generated as vgCreateFontA.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Dec 2 11:40:21 PST 2010


Module: Mesa
Branch: master
Commit: 43121f20866bb89e8dac92bd92ec85a943704b7e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=43121f20866bb89e8dac92bd92ec85a943704b7e

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Dec  2 19:33:41 2010 +0000

mapi: Hack to avoid vgCreateFont being generated as vgCreateFontA.

Right fix is probably stop C-preprocessor abuse and stick 100% with
scripted code generation.

---

 src/mapi/mapi/stub.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mapi/mapi/stub.c b/src/mapi/mapi/stub.c
index 8ceaec3..53d800f 100644
--- a/src/mapi/mapi/stub.c
+++ b/src/mapi/mapi/stub.c
@@ -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 \



More information about the mesa-commit mailing list