From 8f6d27072cdaeeb0107b4d5cf1b43970526d3343 Mon Sep 17 00:00:00 2001 From: vurtun Date: Sat, 30 Apr 2016 11:24:59 -0700 Subject: [PATCH] Fixed extended windows demo errors --- demo/d3d11/main.c | 7 +++++++ demo/gdi/main.c | 8 ++++++++ demo/gdip/main.c | 8 ++++++++ 3 files changed, 23 insertions(+) diff --git a/demo/d3d11/main.c b/demo/d3d11/main.c index a4675c1..f809b06 100644 --- a/demo/d3d11/main.c +++ b/demo/d3d11/main.c @@ -5,6 +5,8 @@ #include #include #include +#include +#include #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 600 @@ -32,6 +34,11 @@ /* This are some code examples to provide a small overview of what can be * done with this library. To try out an example uncomment the include * and the corresponding function. */ + #define UNUSED(a) (void)a + #define MIN(a,b) ((a) < (b) ? (a) : (b)) + #define MAX(a,b) ((a) < (b) ? (b) : (a)) + #define LEN(a) (sizeof(a)/sizeof(a)[0]) + /*#include "../style.c"*/ /*#include "../calculator.c"*/ /*#include "../overview.c"*/ diff --git a/demo/gdi/main.c b/demo/gdi/main.c index 14fe43c..8dccc7a 100644 --- a/demo/gdi/main.c +++ b/demo/gdi/main.c @@ -3,11 +3,14 @@ #include #include #include +#include +#include #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 600 #define NK_INCLUDE_FIXED_TYPES +#define NK_INCLUDE_STANDARD_IO #define NK_INCLUDE_DEFAULT_ALLOCATOR #include "nuklear_gdi.h" #include "nuklear_gdi.c" @@ -20,6 +23,11 @@ /* This are some code examples to provide a small overview of what can be * done with this library. To try out an example uncomment the include * and the corresponding function. */ +#define UNUSED(a) (void)a +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#define MAX(a,b) ((a) < (b) ? (b) : (a)) +#define LEN(a) (sizeof(a)/sizeof(a)[0]) + /*#include "../style.c"*/ /*#include "../calculator.c"*/ /*#include "../overview.c"*/ diff --git a/demo/gdip/main.c b/demo/gdip/main.c index 85b60d6..a78f5e9 100644 --- a/demo/gdip/main.c +++ b/demo/gdip/main.c @@ -3,11 +3,14 @@ #include #include #include +#include +#include #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 600 #define NK_INCLUDE_FIXED_TYPES +#define NK_INCLUDE_STANDARD_IO #define NK_INCLUDE_DEFAULT_ALLOCATOR #include "nuklear_gdip.h" #include "nuklear_gdip.c" @@ -20,6 +23,11 @@ /* This are some code examples to provide a small overview of what can be * done with this library. To try out an example uncomment the include * and the corresponding function. */ + #define UNUSED(a) (void)a + #define MIN(a,b) ((a) < (b) ? (a) : (b)) + #define MAX(a,b) ((a) < (b) ? (b) : (a)) + #define LEN(a) (sizeof(a)/sizeof(a)[0]) + /*#include "../style.c"*/ /*#include "../calculator.c"*/ /*#include "../overview.c"*/