From 82ad57e3fc4b87c78328e1ffd32662cd749de4a2 Mon Sep 17 00:00:00 2001 From: Andrew Copland Date: Sun, 8 Jun 2014 19:03:06 +0100 Subject: [PATCH] defining round function isn't required for vs2013 or newer. --- examples/20-nanovg/nanovg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/20-nanovg/nanovg.cpp b/examples/20-nanovg/nanovg.cpp index 765b8a697..7ee89287b 100644 --- a/examples/20-nanovg/nanovg.cpp +++ b/examples/20-nanovg/nanovg.cpp @@ -833,10 +833,12 @@ void freeDemoData(struct NVGcontext* vg, struct DemoData* data) nvgDeleteImage(vg, data->images[i]); } +#if _MSC_VER < 1800 inline float round(float _f) { return float(int(_f) ); } +#endif void drawParagraph(struct NVGcontext* vg, float x, float y, float width, float height, float mx, float my) {