libpsys

diff src/psys.h @ 11:23d4c50616ff

C++ header file compatibility
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 29 Aug 2012 05:10:46 +0300
parents 9c24273f211b
children 0a53b22f7caf
line diff
     1.1 --- a/src/psys.h	Wed Aug 29 03:16:58 2012 +0300
     1.2 +++ b/src/psys.h	Wed Aug 29 05:10:46 2012 +0300
     1.3 @@ -70,7 +70,9 @@
     1.4  	struct psys_particle *next;
     1.5  };
     1.6  
     1.7 -
     1.8 +#ifdef __cplusplus
     1.9 +extern "C" {
    1.10 +#endif
    1.11  
    1.12  struct psys_emitter *psys_create(void);
    1.13  void psys_free(struct psys_emitter *em);
    1.14 @@ -98,4 +100,8 @@
    1.15  void psys_update(struct psys_emitter *em, float tm);
    1.16  void psys_draw(struct psys_emitter *em);
    1.17  
    1.18 +#ifdef __cplusplus
    1.19 +}
    1.20 +#endif
    1.21 +
    1.22  #endif	/* LIBPSYS_H_ */