Browse Source

Fixed VS build.

Branimir Karadžić 9 years ago
parent
commit
008c3bf922
2 changed files with 4 additions and 4 deletions
  1. 4 0
      include/bx/string.inl
  2. 0 4
      src/string.cpp

+ 4 - 0
include/bx/string.inl

@@ -7,6 +7,10 @@
 #	error "Must be included from bx/string.h!"
 #	error "Must be included from bx/string.h!"
 #endif // BX_STRING_H_HEADER_GUARD
 #endif // BX_STRING_H_HEADER_GUARD
 
 
+#if BX_CRT_MSVC && !defined(va_copy)
+#	define va_copy(_a, _b) (_a) = (_b)
+#endif // BX_CRT_MSVC && !defined(va_copy)
+
 namespace bx
 namespace bx
 {
 {
 	template <typename Ty>
 	template <typename Ty>

+ 0 - 4
src/string.cpp

@@ -15,10 +15,6 @@
 #include <bx/allocator.h>
 #include <bx/allocator.h>
 #include <bx/hash.h>
 #include <bx/hash.h>
 
 
-#ifndef va_copy
-#	define va_copy(_a, _b) (_a) = (_b)
-#endif // va_copy
-
 namespace bx
 namespace bx
 {
 {
 	bool toBool(const char* _str)
 	bool toBool(const char* _str)