加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ec_portable.h 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
daemon_process 提交于 2017-01-26 17:31 . Fix Bugs
#ifndef __EC_PORTABLE_H_
#define __EC_PORTABLE_H_
/*
Note: the "DO NOT AUTO REMOVE" in a end of a line means that DISABLE the SDK头文件自动生成脚本 remove the line.
the "REMOVE IT" in a end of a line means that force the SDK头文件自动生成脚本 remove the line.
*/
#ifdef CKLEXPORT
#undef CKLEXPORT
#endif
#define CKLEXPORT extern "C"
//#ifdef _WIN32
//#define CKLEXPORT extern "C" __declspec(dllexport)
//#elif defined __linux__
//#define CKLEXPORT extern "C"
//#endif
#ifdef _WIN32 /* DO NOT AUTO REMOVE */
#include <Windows.h>
#elif defined __linux__ /* DO NOT AUTO REMOVE */
#include <X11/Xlib.h>
#include <stddef.h> /* DO NOT AUTO REMOVE */
typedef unsigned int DWORD;
typedef bool BOOL;
typedef void* LPVOID;
typedef void* PVOID;
typedef size_t SIZE_T;
typedef long LONG;
typedef unsigned long LONG_PTR;
typedef LONG_PTR UINT_PTR;
typedef LONG_PTR ULONG_PTR;
typedef char BYTE;
typedef unsigned int UINT;
typedef unsigned long ULONG;
#define WINAPI
#define TRUE true
#define FALSE false
#ifdef __EC_LINUX_API
#define HWND void*
typedef struct tagRECT {
int x;
int y;
int width;
int height;
}RECT,*LPRECT;
#else
#define HWND CefWindowHandle /* REMOVE IT */
#define RECT _cef_rect_t /* REMOVE IT */
#endif // __EC_LINUX_API
typedef struct tagECMAINARGS {
int iArgc;
char** pszArgv;
}ECMAINARGS,*LPECMAINARGS;
#define HINSTANCE LPECMAINARGS
//#define wchar_t char
//#define std::wstring std::string
#endif /* DO NOT AUTO REMOVE */
#endif // __EC_PORTABLE_H_
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化