Fix the docs.rs build take 2

This commit is contained in:
Mihai Dinculescu
2022-10-22 10:04:16 +01:00
parent a77356fc48
commit 34411bf63e
8 changed files with 54 additions and 14 deletions

View File

@@ -4,8 +4,6 @@
//
//-----------------------------------------------------------------------------
#include "Windows.h"
#ifndef _SIMCONNECT_H_
#define _SIMCONNECT_H_

View File

@@ -0,0 +1,2 @@
#include <Windows.h>
#include "SimConnect.h"

View File

@@ -0,0 +1,31 @@
// fake defs in lieu of Windows.h that is used for the docs.rs build
#define MAX_PATH 260
#define FALSE 0
#define CONST const
#define CALLBACK __stdcall
#define DECLARE_HANDLE(name) \
struct name##__ \
{ \
int unused; \
}; \
typedef struct name##__ *name
typedef unsigned long DWORD;
typedef unsigned char BYTE;
typedef int BOOL;
typedef long LONG;
typedef LONG HRESULT;
typedef void *HANDLE;
typedef char CHAR;
typedef CONST CHAR *LPCSTR;
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
DECLARE_HANDLE(HWND);
#include "SimConnect.h"