diff C++/Directory.cpp @ 248:d157f4747676

Directory: fix _WIN32 DynLib: fix _WIN32
author David Demelier <markand@malikania.fr>
date Wed, 01 Oct 2014 14:37:42 +0200
parents 7086e93bc4ea
children 24085fae3162
line wrap: on
line diff
--- a/C++/Directory.cpp	Sun Sep 28 21:15:26 2014 +0200
+++ b/C++/Directory.cpp	Wed Oct 01 14:37:42 2014 +0200
@@ -17,10 +17,11 @@
  */
 
 #include <sstream>
+#include <stdexcept>
 
 #include "Directory.h"
 
-#if defined(_MSC_VER)
+#if defined(_WIN32)
 #  include <Windows.h>
 #else
 #  include <cstring>
@@ -30,7 +31,7 @@
 #  include <dirent.h>
 #endif
 
-#if defined(_MSC_VER)
+#if defined(_WIN32)
 
 namespace {