dbd/common.h

changeset 33
6c64c45e7d8f
parent 22
fd78e9cdc6e9
--- a/dbd/common.h	Tue Sep 01 13:15:02 2009 +0000
+++ b/dbd/common.h	Fri Sep 18 12:40:53 2009 +0000
@@ -10,12 +10,22 @@
 #include <compat-5.1.h>
 #endif
 
+#ifdef _WIN32
+    #define LUA_EXPORT __declspec(dllexport)
+#else
+    #define LUA_EXPORT
+#endif
+
+#ifdef _MSC_VER  /* all MS compilers define this (version) */
+     #define snprintf _snprintf
+#endif
+
 /*
  *
  * Table construction helper functions
  *
  * LUA_PUSH_ATTRIB_* creates string indexed (hashmap)
- * LUA_PUSH_ATTRIB_* creates integer indexed (array)
+ * LUA_PUSH_ARRAY_* creates integer indexed (array)
  *
  */
 

mercurial