File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ addons:
12
12
script :
13
13
- ' [ -z "$TRAVIS_TAG" ] || SW_VER=-DSW_VER=L\"$TRAVIS_TAG\"'
14
14
- ' mkdir out zip'
15
- - ' x86_64-w64-mingw32-gcc -std=c99 --pedantic -Wall -Werror - Wno-implicit-function-declaration --static main.c -o out/Launcher.exe $SW_VER'
15
+ - ' x86_64-w64-mingw32-gcc -std=c99 --pedantic -Wall -Wno-implicit-function-declaration --static main.c -lshlwapi -o out/Launcher.exe $SW_VER'
16
16
- ' find ./res/* -maxdepth 1 -type d -printf '' %f\n'' > resl.txt'
17
17
- ' xargs -a resl.txt -I{} x86_64-w64-mingw32-windres res/{}/res.rc -o res/{}.o'
18
- - ' xargs -a resl.txt -I{} x86_64-w64-mingw32-gcc -std=c99 --pedantic -Wall -Werror - Wno-implicit-function-declaration --static main.c res/{}.o -o zip/{}.exe $SW_VER'
18
+ - ' xargs -a resl.txt -I{} x86_64-w64-mingw32-gcc -std=c99 --pedantic -Wall -Wno-implicit-function-declaration --static main.c -lshlwapi res/{}.o -o zip/{}.exe $SW_VER'
19
19
- ' cd zip'
20
20
- ' zip ../out/icons.zip *'
21
21
- ' cd ..'
Original file line number Diff line number Diff line change 18
18
#include "wsld.h"
19
19
#include "version.h"
20
20
21
+ #ifdef _MSC_VER
22
+ #pragma comment(lib, "shlwapi.lib")
23
+ #endif
24
+
21
25
#define ARRAY_LENGTH (a ) (sizeof(a)/sizeof(a[0]))
22
26
#define WARGV_CMP (a ,b ) ((wargc>a)?wcscmp(wargv[a],b)==0:false)
23
27
You can’t perform that action at this time.
0 commit comments