Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

Commit

Permalink
Fixed warning : 'va_copy' : macro redefinition
Browse files Browse the repository at this point in the history
MSVC 2013 has got va_copy
Compare
http://msdn.microsoft.com/en-us/library/kb57fad8(v=vs.110).aspx
and
http://msdn.microsoft.com/en-us/library/kb57fad8.aspx.

Change-Id: If0937c76e8d250cde4b343844f3d35c980bf0921
  • Loading branch information
bjornpiltz authored and sandwichmaker committed May 7, 2014
1 parent 1df2f0f commit 3209b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/ceres/stringprintf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ namespace internal {

#ifdef _MSC_VER
enum { IS_COMPILER_MSVC = 1 };
#if _MSC_VER < 1800
#define va_copy(d, s) ((d) = (s))
#endif
#else
enum { IS_COMPILER_MSVC = 0 };
#endif
Expand Down

0 comments on commit 3209b04

Please sign in to comment.