Browse Source

demo: Add headers to overview.c (#684)

This adds the required C headers directly to the top of the overview.c demo so that they don't need to be added in the renders themselves.
Rob Loach 1 year ago
parent
commit
18f7e7a948
1 changed files with 2 additions and 1 deletions
  1. 2 1
      demo/common/overview.c

+ 2 - 1
demo/common/overview.c

@@ -1,4 +1,5 @@
-#include <time.h>
+#include <limits.h> /* INT_MAX */
+#include <time.h> /* struct tm, localtime */
 
 static int
 overview(struct nk_context *ctx)