Fix C99 example for MSVC toolchains

The existing code is valid C99, however there only C99
specific feature used that is incompatible with the
MSVC C compiler is the relaxed variable declaration rules.
This commit is contained in:
Matthew Endsley 2015-03-27 21:29:55 -07:00
parent bf393f69f7
commit 79e4695b70

View file

@ -15,12 +15,12 @@ uint16_t uint16_max(uint16_t _a, uint16_t _b)
int _main_(int _argc, char** _argv)
{
(void)_argc;
(void)_argv;
uint32_t width = 1280;
uint32_t height = 720;
uint32_t debug = BGFX_DEBUG_TEXT;
uint32_t reset = BGFX_RESET_VSYNC;
(void)_argc;
(void)_argv;
bgfx_init(BGFX_RENDERER_TYPE_COUNT, NULL, NULL);
bgfx_reset(width, height, reset);