Skip to content

Instantly share code, notes, and snippets.

View DrYak's full-sized avatar
🦁
Roar!

DrYak DrYak

🦁
Roar!
View GitHub Profile
@DrYak
DrYak / gist:532c10720065d18e27bd
Created April 24, 2015 22:23
disphelper patch - for wine and byref support - single source
diff --git a/single_file_source/disphelper.c b/single_file_source/disphelper.c
index 80e2b89..0034d37 100644
--- a/single_file_source/disphelper.c
+++ b/single_file_source/disphelper.c
@@ -36,6 +36,14 @@
#include <math.h>
#include <assert.h>
+#ifdef __WINE__
+// Wine uses the system widechar string function which as C99 compliant ( swprintf is the wide equivalent of snprintf )