123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef RVC_VENDOR_LOG4VENDOR_H_
- #define RVC_VENDOR_LOG4VENDOR_H_
- #pragma once
- #if (defined(_WIN32) || defined(_WIN64))
- #define OS_WIN 1
- #else
- #define OS_WIN 0
- #endif
- #ifndef _WIN32
- #include <stdint.h>
- #ifdef __cplusplus
- #define EXTERN_C extern "C"
- #define EXTERN_C_START extern "C" {
- #define EXTERN_C_END }
- #else
- #define EXTERN_C extern
- #define EXTERN_C_START
- #define EXTERN_C_END
- #endif
- typedef uint8_t BYTE;
- typedef uint8_t* LPBYTE;
- typedef uint16_t WORD;
- typedef uint32_t DWORD;
- typedef char CHAR;
- typedef uint8_t BOOL;
- #define TRUE 1
- #define FALSE 0
- #ifndef MAX_PATH
- #define MAX_PATH 260
- #endif
- #else
- #include <SDKDDKVer.h>
- #ifndef WIN32_LEAN_AND_MEAN
- #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息
- #endif
- // Windows 头文件:
- #include <windows.h>
- #endif
- EXTERN_C BOOL IsVTMProcess();
- EXTERN_C BOOL GetCurFileVersion(char szVerion[], DWORD dwVerionSize);
- #endif
|