aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index fea5959..3da435a 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -216,7 +216,7 @@ puglSetEventFunc(PuglView* view, PuglEventFunc eventFunc)
static inline uint32_t
puglDecodeUTF8(const uint8_t* buf)
{
-#define FAIL_IF(cond) { if (cond) return 0xFFFD; }
+#define FAIL_IF(cond) do { if (cond) return 0xFFFD; } while (0)
// http://en.wikipedia.org/wiki/UTF-8