OSDN Git Service

file_stream.hpp: VC++ 4996 警告うざいからなー
authormyun2 <myun2@nwhite.info>
Sat, 7 Jul 2012 08:05:15 +0000 (17:05 +0900)
committermyun2 <myun2@nwhite.info>
Sat, 7 Jul 2012 08:05:15 +0000 (17:05 +0900)
roast/include/roast/stream/file_stream.hpp

index 342e2f9..dd12aee 100644 (file)
@@ -13,6 +13,9 @@
 #define _ROAST_INT_MAX                 (sizeof(int)/2-1)
 #define _ROAST_CLOSABLE_FP(fp) ( fp != stdin && fp != stdout && fp != stderr )
 
+#ifdef WIN32
+       #pragma warning(disable:4996)
+#endif
 namespace roast
 {
        namespace stream
@@ -56,6 +59,9 @@ namespace roast
                ///////////////////////////////////////////////////////////////////
        }
 }
+#ifdef WIN32
+       #pragma warning(default:4996)
+#endif
 
 #include "roast/stream/file_istream.hpp"