mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 13:03:11 +08:00
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
#pragma once
|
|
/* GLOBAL.H - RSAREF types and constants
|
|
*/
|
|
|
|
/* PROTOTYPES should be set to one if and only if the compiler supports
|
|
function argument prototyping.
|
|
The following makes PROTOTYPES default to 0 if it has not already
|
|
been defined with C compiler flags.
|
|
*/
|
|
|
|
#include "../../../DesktopEditor/common/Types.h"
|
|
|
|
#ifdef _WIN32
|
|
#include <atlbase.h>
|
|
#include <atlstr.h>
|
|
#else
|
|
#include "../../../DesktopEditor/common/ASCVariant.h"
|
|
#include "../../../Common/DocxFormat/Source/Base/ASCString.h"
|
|
#endif
|
|
|
|
#ifndef PROTOTYPES
|
|
#define PROTOTYPES 1
|
|
#endif
|
|
|
|
/* POINTER defines a generic pointer type */
|
|
typedef unsigned char *POINTER;
|
|
|
|
/* UINT2 defines a two unsigned char word */
|
|
typedef unsigned short int UINT2;
|
|
|
|
/* UINT4 defines a four unsigned char word */
|
|
typedef unsigned long int UINT4;
|
|
|
|
/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
|
|
If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
|
|
returns an empty list.
|
|
*/
|
|
|
|
#if PROTOTYPES
|
|
#define PROTO_LIST(list) list
|
|
#else
|
|
#define PROTO_LIST(list) ()
|
|
#endif
|