diff --git a/src/api/android.c b/src/api/android.c index 70cb23a7..4cd81b34 100644 --- a/src/api/android.c +++ b/src/api/android.c @@ -1,5 +1,6 @@ #include "api.h" -#include "sds.h" +#include "lib/sds/sds.h" +#include static int l_lovrGetApplicationId(lua_State *L) { pid_t pid = getpid(); @@ -10,7 +11,7 @@ static int l_lovrGetApplicationId(lua_State *L) { sds procData = sdsempty(); char data[64]; int read; - while (read = fread(data, sizeof(data), 1, procFile)) { + while ((read = fread(data, sizeof(data), 1, procFile))) { procData = sdscatlen(procData, data, read); } sdsfree(procData); @@ -22,7 +23,7 @@ static int l_lovrGetApplicationId(lua_State *L) { static const luaL_Reg lovrAndroid[] = { { "getApplicationId", l_lovrGetApplicationId }, -} +}; LOVR_API int luaopen_lovr_android(lua_State* L) { lua_newtable(L); diff --git a/src/headset/oculus_mobile.c b/src/headset/oculus_mobile.c index 9fb501b5..e88f614b 100644 --- a/src/headset/oculus_mobile.c +++ b/src/headset/oculus_mobile.c @@ -1,8 +1,7 @@ #include "headset/headset.h" #include "oculus_mobile_bridge.h" -#include "math/quat.h" +#include "math.h" #include "graphics/graphics.h" -#include "math/mat4.h" #include "lib/glad/glad.h" #include #include "platform.h" diff --git a/src/platform/android.c b/src/platform/android.c index 3a57bd1c..4a72e2a2 100644 --- a/src/platform/android.c +++ b/src/platform/android.c @@ -76,3 +76,7 @@ void lovrSleep(double seconds) { int lovrGetExecutablePath(char* dest, uint32_t size) { return 1; } + +#include +#include +getProcAddressProc lovrGetProcAddress = eglGetProcAddress; \ No newline at end of file