-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphp_sdl_mixer.h
54 lines (41 loc) · 847 Bytes
/
php_sdl_mixer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef PHP_SDL_MIXER_H
#define PHP_SDL_MIXER_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <php.h>
#include <zend_exceptions.h>
#define PHP_SDL_MIXER_VERSION "0.4.0"
#if defined(__APPLE__) && defined(__MACH__)
#include <SDL2/SDL.h>
#else
#include <SDL.h>
#endif
#include <php.h>
#include <ext/standard/info.h>
#include "SDL_mixer.h"
#ifdef __cplusplus
} // extern "C"
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern zend_module_entry sdl_mixer_module_entry;
#define phpext_sdl_mixer_ptr &sdl_mixer_module_entry
#ifdef PHP_WIN32
#define PHP_SDL_API __declspec(dllexport)
#else
#define PHP_SDL_API
#endif
PHP_MINIT_FUNCTION(sdl_mixer);
PHP_MINFO_FUNCTION(sdl_mixer);
#ifdef ZTS
#include "TSRM.h"
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* PHP_SDL_MIXER_H */