瀏覽代碼

Merge pull request #29 from procedural/linux-fixes

Fix compiling on Linux
pull/56/head
Ray 9 年之前
父節點
當前提交
f582ab06ad
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. +2
    -1
      src/gestures.c
  2. +1
    -1
      src/makefile

+ 2
- 1
src/gestures.c 查看文件

@ -37,6 +37,7 @@
#if defined(_WIN32)
//#include <Windows.h>
#elif defined(__linux)
#include <sys/time.h> // Declares storage size of ‘now’
#include <time.h> // Used for clock functions
#endif
@ -659,4 +660,4 @@ static EM_BOOL EmscriptenInputCallback(int eventType, const EmscriptenTouchEvent
return 1;
}
#endif
#endif

+ 1
- 1
src/makefile 查看文件

@ -73,7 +73,7 @@ endif
ifeq ($(PLATFORM),PLATFORM_RPI)
CFLAGS = -O1 -Wall -std=gnu99 -fgnu89-inline
else
CFLAGS = -O1 -Wall -std=c99
CFLAGS = -O1 -Wall -std=gnu99
endif
#CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes

Loading…
取消
儲存