src/core/android/SDL_android.h
changeset 7570 716a36edc73c
parent 7532 2c54272792e2
child 7575 930f21eaacd7
     1.1 --- a/src/core/android/SDL_android.h	Sat Aug 03 23:40:28 2013 +0200
     1.2 +++ b/src/core/android/SDL_android.h	Sun Aug 04 09:23:55 2013 -0700
     1.3 @@ -20,6 +20,13 @@
     1.4  */
     1.5  #include "SDL_config.h"
     1.6  
     1.7 +/* Set up for C function definitions, even when using C++ */
     1.8 +#ifdef __cplusplus
     1.9 +/* *INDENT-OFF* */
    1.10 +extern "C" {
    1.11 +/* *INDENT-ON* */
    1.12 +#endif
    1.13 +
    1.14  #include "SDL_rect.h"
    1.15  
    1.16  /* Interface from the SDL library into the Android Java activity */
    1.17 @@ -61,4 +68,11 @@
    1.18  /* Generic messages */
    1.19  int Android_JNI_SendMessage(int command, int param);
    1.20  
    1.21 +/* Ends C function definitions when using C++ */
    1.22 +#ifdef __cplusplus
    1.23 +/* *INDENT-OFF* */
    1.24 +}
    1.25 +/* *INDENT-ON* */
    1.26 +#endif
    1.27 +
    1.28  /* vi: set ts=4 sw=4 expandtab: */