aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTravis Howell2003-08-01 05:41:07 +0000
committerTravis Howell2003-08-01 05:41:07 +0000
commita15dab5fb87d105dc35379dc88083f48ed0fee46 (patch)
tree8d1defbfd70928fd39d87d6286a87d5511850009 /common
parent053d12ef2915c29f833d416df7f5064b4382eb14 (diff)
downloadscummvm-rg350-a15dab5fb87d105dc35379dc88083f48ed0fee46.tar.gz
scummvm-rg350-a15dab5fb87d105dc35379dc88083f48ed0fee46.tar.bz2
scummvm-rg350-a15dab5fb87d105dc35379dc88083f48ed0fee46.zip
This should be Microsoft Visual C++ only
svn-id: r9355
Diffstat (limited to 'common')
-rw-r--r--common/stdafx.h2
-rw-r--r--common/str.cpp5
2 files changed, 2 insertions, 5 deletions
diff --git a/common/stdafx.h b/common/stdafx.h
index a2f011393b..706d9f2047 100644
--- a/common/stdafx.h
+++ b/common/stdafx.h
@@ -35,10 +35,12 @@
#elif defined(WIN32)
+#if _MSC_VER
#pragma once
#pragma warning( disable : 4068 ) // turn off "unknown pragma" warning
#pragma warning( disable : 4244 ) // turn off "conversion type" warning
#pragma warning( disable : 4390 ) // turn oof "empty statement" warning for BS2 code
+#endif
#if !defined(_WIN32_WCE)
diff --git a/common/str.cpp b/common/str.cpp
index 97bb7fb17e..91ba683838 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -23,11 +23,6 @@
#include <ctype.h>
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
namespace ScummVM {
String::String(const char *str, int len) {