Browse Source

Fixed one more undefined defines errors.

[email protected] 11 years ago
parent
commit
1baf1c0734
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/20-nanovg/nanovg.cpp

+ 1 - 1
examples/20-nanovg/nanovg.cpp

@@ -984,7 +984,7 @@ void freeDemoData(struct NVGcontext* vg, struct DemoData* data)
 		nvgDeleteImage(vg, data->images[i]);
 }
 
-#if _MSC_VER < 1800
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
 inline float round(float _f)
 {
 	return float(int(_f) );