Skip to content

Commit b800f3a

Browse files
committed
load shlwapi to compiler
1 parent e1d80b5 commit b800f3a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ addons:
1212
script:
1313
- '[ -z "$TRAVIS_TAG" ] || SW_VER=-DSW_VER=L\"$TRAVIS_TAG\"'
1414
- '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'
1616
- 'find ./res/* -maxdepth 1 -type d -printf ''%f\n'' > resl.txt'
1717
- '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'
1919
- 'cd zip'
2020
- 'zip ../out/icons.zip *'
2121
- 'cd ..'

main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include "wsld.h"
1919
#include "version.h"
2020

21+
#ifdef _MSC_VER
22+
#pragma comment(lib, "shlwapi.lib")
23+
#endif
24+
2125
#define ARRAY_LENGTH(a) (sizeof(a)/sizeof(a[0]))
2226
#define WARGV_CMP(a,b) ((wargc>a)?wcscmp(wargv[a],b)==0:false)
2327

0 commit comments

Comments
 (0)