2023-07-21 00:35:39 -03:00
|
|
|
/**
|
|
|
|
* This file only provides types for
|
|
|
|
* Compatibility propourses regarding
|
|
|
|
* OpenDX. It's not intended to rewrite
|
|
|
|
* the entire Windows API.
|
|
|
|
*
|
|
|
|
* Part of: libopendx.so
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
//does it really goes here?
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/syscall.h>
|
|
|
|
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
#define __stdcall __attribute__((stdcall))
|
|
|
|
#endif
|
2023-09-20 21:52:09 -03:00
|
|
|
#define WINAPI __stdcall
|
|
|
|
#define __int64 long long
|
2023-07-21 00:35:39 -03:00
|
|
|
|
|
|
|
//windows types:
|
|
|
|
#define WCHAR wchar_t
|
|
|
|
#define TCHAR char
|
|
|
|
#define UINT unsigned int
|
|
|
|
#define ULONG unsigned long
|
2023-07-29 21:03:57 -03:00
|
|
|
#define ULONG_PTR unsigned long
|
2023-07-21 00:35:39 -03:00
|
|
|
#define LONG long
|
|
|
|
#define BOOL bool
|
|
|
|
#define BYTE unsigned char
|
2023-09-20 21:52:09 -03:00
|
|
|
#define LPSTR char*
|
2023-07-29 21:03:57 -03:00
|
|
|
#define LPCSTR const char*
|
2023-09-20 21:52:09 -03:00
|
|
|
#define LPCTSTR const char*
|
2023-07-29 21:03:57 -03:00
|
|
|
#define LPCWSTR const char*
|
2023-07-21 00:35:39 -03:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winnt.h>
|
2023-09-21 01:54:21 -03:00
|
|
|
#include <gtk/gtk.h>
|
2023-07-21 00:35:39 -03:00
|
|
|
|
|
|
|
#define DWORD unsigned long
|
2023-09-20 21:52:09 -03:00
|
|
|
#define HWND GtkWidget*
|
2023-07-21 00:35:39 -03:00
|
|
|
#define HMENU void*
|
|
|
|
#define HINSTANCE void*
|
|
|
|
#define LPVOID void*
|
2023-09-20 21:52:09 -03:00
|
|
|
|
|
|
|
#define LONG_PTR __int64
|
|
|
|
#define LPARAM LONG_PTR
|
|
|
|
#define WPARAM unsigned __int64
|