Бранимир Караџић 2 years ago
parent
commit
4d11ad55f3
2 changed files with 3 additions and 3 deletions
  1. 2 2
      examples/25-c99/helloworld.c
  2. 1 1
      examples/common/entry/entry_ios.mm

+ 2 - 2
examples/25-c99/helloworld.c

@@ -7,8 +7,8 @@
 #include "../00-helloworld/logo.h"
 
 extern bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset);
-extern void* entry_get_default_native_window_handle();
-extern void* entry_get_native_display_handle();
+extern void* entry_get_default_native_window_handle(void);
+extern void* entry_get_native_display_handle(void);
 
 uint16_t uint16_max(uint16_t _a, uint16_t _b)
 {

+ 1 - 1
examples/common/entry/entry_ios.mm

@@ -150,7 +150,7 @@ namespace entry
 	{
 		if (kDefaultWindowHandle.idx == _handle.idx)
 		{
-			return s_ctx.m_window;
+			return s_ctx->m_window;
 		}
 
 		return NULL;