summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/BlockID.h2
-rw-r--r--source/ManualBindings.cpp4
-rw-r--r--source/StringUtils.cpp6
3 files changed, 9 insertions, 3 deletions
diff --git a/source/BlockID.h b/source/BlockID.h
index 0cea35f12..44d1b3ad1 100644
--- a/source/BlockID.h
+++ b/source/BlockID.h
@@ -593,7 +593,7 @@ enum
E_ENTITY_TYPE_IRON_GOLEM = 99,
E_ENTITY_TYPE_VILLAGER = 120,
} ;
-//tolua_end
+// tolua_end
diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp
index 0f8f1ad27..8d7fe9c42 100644
--- a/source/ManualBindings.cpp
+++ b/source/ManualBindings.cpp
@@ -1316,8 +1316,8 @@ void ManualBindings::Bind( lua_State* tolua_S )
tolua_cclass(tolua_S,"HTTPRequest","HTTPRequest","",NULL);
tolua_beginmodule(tolua_S,"HTTPRequest");
- //tolua_variable(tolua_S,"Method",tolua_get_HTTPRequest_Method,tolua_set_HTTPRequest_Method);
- //tolua_variable(tolua_S,"Path",tolua_get_HTTPRequest_Path,tolua_set_HTTPRequest_Path);
+ // tolua_variable(tolua_S,"Method",tolua_get_HTTPRequest_Method,tolua_set_HTTPRequest_Method);
+ // tolua_variable(tolua_S,"Path",tolua_get_HTTPRequest_Path,tolua_set_HTTPRequest_Path);
tolua_variable(tolua_S,"Params",tolua_get_HTTPRequest_Params,0);
tolua_variable(tolua_S,"PostParams",tolua_get_HTTPRequest_PostParams,0);
tolua_variable(tolua_S,"FormData",tolua_get_HTTPRequest_FormData,0);
diff --git a/source/StringUtils.cpp b/source/StringUtils.cpp
index 536281054..da809c5a4 100644
--- a/source/StringUtils.cpp
+++ b/source/StringUtils.cpp
@@ -9,6 +9,12 @@
#include <ctype.h>
#endif
+#ifdef _MSC_VER
+ // Under MSVC, link to WinSock2 (needed by RawBEToUTF8's byteswapping)
+ #pragma comment(lib, "ws2_32.lib")
+#endif
+
+