libpsys

diff src/pattr.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 66956b1e5e3f
line diff
     1.1 --- a/src/pattr.h	Wed Aug 29 03:16:58 2012 +0300
     1.2 +++ b/src/pattr.h	Wed Aug 29 05:10:46 2012 +0300
     1.3 @@ -30,6 +30,10 @@
     1.4  	int max_particles;
     1.5  };
     1.6  
     1.7 +#ifdef __cplusplus
     1.8 +extern "C" {
     1.9 +#endif
    1.10 +
    1.11  void psys_texture_loader(unsigned int (*load)(const char*, void*), void (*unload)(unsigned int, void*), void *cls);
    1.12  
    1.13  int psys_init_attr(struct psys_attributes *attr);
    1.14 @@ -43,4 +47,8 @@
    1.15  int psys_save_attr(struct psys_attributes *attr, const char *fname);
    1.16  int psys_save_attr_stream(struct psys_attributes *attr, FILE *fp);
    1.17  
    1.18 +#ifdef __cplusplus
    1.19 +}
    1.20  #endif
    1.21 +
    1.22 +#endif	/* PATTR_H_ */