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

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

View File

@ -1,12 +1,14 @@
#define DWORD unsigned int
#define LPDWORD unsigned int *
#define LPOVERLAPPED void *
#define TCHAR char
#define HANDLE void *
#define LONG int
#define ERROR_HANDLE_EOF 1002
#define WINAPI #define WINAPI
#define DWORD unsigned long
#define LPDWORD unsigned long *
#define LPOVERLAPPED void *
#define TCHAR char
#define HANDLE void *
#define LONG long
#define ERROR_HANDLE_EOF 1002
DWORD GetLastError(); DWORD GetLastError();
#include <stdlib.h> #include <stdlib.h>

View File

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