forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcefpython_public_api.h
More file actions
40 lines (33 loc) · 1.25 KB
/
cefpython_public_api.h
File metadata and controls
40 lines (33 loc) · 1.25 KB
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
// d:\cefpython\src\setup/cefpython.h(22) : warning C4190: 'RequestHandler_GetCookieManager'
// has C-linkage specified, but returns UDT 'CefRefPtr<T>' which is incompatible with C
#ifndef CEFPYTHON_PUBLIC_API_H
#define CEFPYTHON_PUBLIC_API_H
#if defined(OS_WIN)
#pragma warning(disable:4190)
#endif
// To be able to use 'public' declarations you need to include Python.h and cefpython.h.
// This include must be before including CEF, otherwise you get errors like:
// | /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined
// This file needs to be included first before CEF.
#include "Python.h"
// All the imports that are required when including "cefpython.h".
#include "include/cef_client.h"
#include "include/cef_urlrequest.h"
#include "include/cef_command_line.h"
#include "util.h"
// Python 3.2 fix - DL_IMPORT is not defined in Python.h
#ifndef DL_IMPORT /* declarations for DLL import/export */
#define DL_IMPORT(RTYPE) RTYPE
#endif
#ifndef DL_EXPORT /* declarations for DLL import/export */
#define DL_EXPORT(RTYPE) RTYPE
#endif
#if defined(OS_WIN)
#include "windows/setup/cefpython.h"
#elif defined(OS_LINUX)
#include "linux/setup/cefpython.h"
#elif defined(OS_MACOSX)
#include "mac/setup/cefpython.h"
#endif
// CEFPYTHON_PUBLIC_API_H
#endif