diff options
| author | Francesco Abbate <francesco.bbt@gmail.com> | 2020-06-16 15:00:47 +0200 |
|---|---|---|
| committer | Francesco Abbate <francesco.bbt@gmail.com> | 2020-06-16 15:00:47 +0200 |
| commit | fe0dda8309f4beb31bf12820b1a052ec2c0febdd (patch) | |
| tree | 3e1058262fa6bc7d5e696bd510e77554c4b892d2 | |
| parent | 2c6bd874faa9c31864c2c7f13dc3c9da05a7bbd2 (diff) | |
| parent | 1db1f0bcebd54878a0415deda91c92b6e03acbd3 (diff) | |
| download | lite-xl-fe0dda8309f4beb31bf12820b1a052ec2c0febdd.tar.gz lite-xl-fe0dda8309f4beb31bf12820b1a052ec2c0febdd.zip | |
Merge remote-tracking branch 'rxi/master' into agg-font-renderer
| -rwxr-xr-x | build.sh | 2 | ||||
| -rw-r--r-- | data/core/init.lua | 2 | ||||
| -rw-r--r-- | src/main.c | 4 |
3 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,6 @@ #!/bin/bash -cflags="-Wall -O3 -g -std=gnu11 -Isrc" +cflags="-Wall -O3 -g -std=gnu11 -fno-strict-aliasing -Isrc" lflags="-lSDL2 -lm" if [[ $* == *windows* ]]; then diff --git a/data/core/init.lua b/data/core/init.lua index 0a03c5b0..fe74b344 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -82,7 +82,7 @@ function core.init() CommandView = require "core.commandview" Doc = require "core.doc" - local project_dir = "." + local project_dir = EXEDIR local files = {} for i = 2, #ARGS do local info = system.get_file_info(ARGS[i]) or {} @@ -7,6 +7,8 @@ #include <windows.h> #elif __linux__ #include <unistd.h> +#elif __APPLE__ + #include <mach-o/dyld.h> #endif @@ -100,7 +102,7 @@ int main(int argc, char **argv) { } lua_setglobal(L, "ARGS"); - lua_pushstring(L, "1.07"); + lua_pushstring(L, "1.08"); lua_setglobal(L, "VERSION"); lua_pushstring(L, SDL_GetPlatform()); |
