Browse Source

Added include guard for love.h

Alex Szpakowski 12 years ago
parent
commit
411d16b063
1 changed files with 15 additions and 4 deletions
  1. 15 4
      src/modules/love/love.h

+ 15 - 4
src/modules/love/love.h

@@ -18,16 +18,27 @@
  * 3. This notice may not be removed or altered from any source distribution.
  * 3. This notice may not be removed or altered from any source distribution.
  **/
  **/
 
 
+#ifndef LOVE_LOVE_H
+#define LOVE_LOVE_H
+
 // LOVE
 // LOVE
 #include "common/config.h"
 #include "common/config.h"
 
 
 // Forward declare lua_State.
 // Forward declare lua_State.
 struct lua_State;
 struct lua_State;
 
 
+#ifdef __cplusplus
 extern "C"
 extern "C"
 {
 {
-	LOVE_EXPORT const char *love_version();
-	LOVE_EXPORT const char *love_codename();
-	LOVE_EXPORT int luaopen_love(lua_State *L);
-	LOVE_EXPORT int luaopen_love_boot(lua_State *L);
+#endif
+
+LOVE_EXPORT const char *love_version();
+LOVE_EXPORT const char *love_codename();
+LOVE_EXPORT int luaopen_love(lua_State *L);
+LOVE_EXPORT int luaopen_love_boot(lua_State *L);
+
+#ifdef __cplusplus
 }
 }
+#endif
+
+#endif // LOVE_LOVE_H