Make it build on VS2013

This commit is contained in:
Ben Pye 2013-08-10 16:28:02 +01:00
parent 41f9b271b0
commit 80d46c8f7d
5 changed files with 7 additions and 2 deletions

View file

@ -153,9 +153,9 @@ public:
WindowsAttribute(WORD _wAttributes) : wAttributes(_wAttributes) {}
void apply(std::ostream& os) const {
DWORD nStdHandleOutput;
if (os == std::cout) {
if (&os == &std::cout) {
nStdHandleOutput = STD_OUTPUT_HANDLE;
} else if (os == std::cerr) {
} else if (&os == &std::cerr) {
nStdHandleOutput = STD_ERROR_HANDLE;
} else {
return;

View file

@ -54,6 +54,7 @@
#include <snappy.h>
#include <iostream>
#include <algorithm>
#include <assert.h>
#include <string.h>

View file

@ -19,6 +19,7 @@
#endif
#include <cstring> // strlen
#include <algorithm>
#include <string>
#include <boost/print/detail.hpp>

View file

@ -35,8 +35,10 @@
namespace boost { namespace print {
#ifdef WIN32
#if defined(_MSC_VER) && _MSC_VER < 1800
inline void va_copy(std::va_list &d, std::va_list &s) { d = s; }
#endif
#endif
// Generic printf

View file

@ -38,6 +38,7 @@
REGAL_GLOBAL_BEGIN
#include <math.h>
#include <algorithm>
#include "RegalPpca.h"
#include "RegalContext.h"