-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp_git2.h
More file actions
39 lines (32 loc) · 789 Bytes
/
php_git2.h
File metadata and controls
39 lines (32 loc) · 789 Bytes
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
#ifndef PHP_GIT2_H
#define PHP_GIT2_H
#define PHP_GIT2_EXTNAME "git2"
#define PHP_GIT2_EXTVER "0.1.0"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <php.h>
#include <SAPI.h>
#include <dlfcn.h>
#include <string.h>
#include "zend_exceptions.h"
#include "zend_interfaces.h"
#ifdef ZTS
#include "TSRM.h"
#endif
#include "git2.h"
#include "git2/odb.h"
#include "git2/odb_backend.h"
#include "git2/trace.h"
#include "git2/sys/filter.h"
#include "git2/sys/odb_backend.h"
extern zend_module_entry git2_module_entry;
#define phpext_git2_ptr &git2_module_entry
#ifdef PHP_WIN32
#define PHP_GIT2_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
#define PHP_GIT2_API __attribute__ ((visibility("default")))
#else
#define PHP_GIT2_API
#endif
#endif /* PHP_GIT2_H */