Permalink
Browse files

towards compile v8 windows

  • Loading branch information...
1 parent aed7970 commit 67d182174622e4c87b1c32f61751360cc319868d @dwight dwight committed Jun 21, 2011
Showing with 26 additions and 0 deletions.
  1. +8 −0 scripting/v8_db.cpp
  2. +10 −0 scripting/v8_utils.cpp
  3. +8 −0 scripting/v8_wrapper.cpp
View
@@ -15,6 +15,14 @@
* limitations under the License.
*/
+#if defined(_WIN32)
+/** this is a hack - v8stdint.h defined uint16_t etc. on _WIN32 only, and that collides with
+ our usage of boost */
+#include "boost/cstdint.hpp"
+using namespace boost;
+#define V8STDINT_H_
+#endif
+
#include "v8_wrapper.h"
#include "v8_utils.h"
#include "engine_v8.h"
View
@@ -15,14 +15,24 @@
* limitations under the License.
*/
+#if defined(_WIN32)
+/** this is a hack - v8stdint.h defined uint16_t etc. on _WIN32 only, and that collides with
+ our usage of boost */
+#include "boost/cstdint.hpp"
+using namespace boost;
+#define V8STDINT_H_
+#endif
+
#include "v8_utils.h"
#include "v8_db.h"
#include <iostream>
#include <map>
#include <sstream>
#include <vector>
+#if !defined(_WIN32)
#include <sys/socket.h>
#include <netinet/in.h>
+#endif
#include <boost/smart_ptr.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thread/xtime.hpp>
View
@@ -15,6 +15,14 @@
* limitations under the License.
*/
+#if defined(_WIN32)
+/** this is a hack - v8stdint.h defined uint16_t etc. on _WIN32 only, and that collides with
+ our usage of boost */
+#include "boost/cstdint.hpp"
+using namespace boost;
+#define V8STDINT_H_
+#endif
+
#include "v8_wrapper.h"
#include "v8_utils.h"
#include "v8_db.h"

0 comments on commit 67d1821

Please sign in to comment.