[AD] _al_mangled_main needs declaration for C as well? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
For -Wmissing-prototypes, yes?
Peter
diff --git a/include/allegro5/platform/alosx.h b/include/allegro5/platform/alosx.h
index c8cf708..fc5a884 100644
--- a/include/allegro5/platform/alosx.h
+++ b/include/allegro5/platform/alosx.h
@@ -60,6 +60,8 @@ ALLEGRO_PATH *_al_osx_get_path(int id);
#endif
#ifdef __cplusplus
extern "C" int _al_mangled_main(int, char **);
+ #else
+ extern int _al_mangled_main(int, char **);
#endif
#endif
#endif