cgo cleanup for linux

This commit is contained in:
Alex Yatskov 2019-01-05 11:09:27 -08:00
parent 581fb79523
commit cb5202f7c4
3 changed files with 13 additions and 11 deletions

View File

@ -3,6 +3,7 @@
#define FILE_BEGIN 0
#define FILE_CURRENT 1
#define FILE_END 2
#define SFILE_INVALID_SIZE 0xffffffff
bool WINAPI SFileOpenArchive(const TCHAR * szMpqName, DWORD dwPriority, DWORD dwFlags, HANDLE * phMpq);

View File

@ -1,11 +1,13 @@
#define DWORD unsigned int
#define LPDWORD unsigned int *
#define WINAPI
#define DWORD unsigned long
#define LPDWORD unsigned long *
#define LPOVERLAPPED void *
#define TCHAR char
#define HANDLE void *
#define LONG int
#define LONG long
#define ERROR_HANDLE_EOF 1002
#define WINAPI
DWORD GetLastError();

View File

@ -1,6 +1,5 @@
package imgui
// #cgo linux CFLAGS: -I./cimgui
// #cgo linux LDFLAGS: -L./cimgui -l:cimgui.a -lstdc++ -lm
// #include "native.h"
import "C"