diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-10-11 03:21:08 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-10-11 03:21:08 +0200 |
commit | c7fb1a1844644536340591d4d0e16180527f1627 (patch) | |
tree | 367f1e28d76a5e0c167ae71b6b087995271d77f4 | |
parent | 0d0660ed39eb75aafd2d20bf5027add550376149 (diff) | |
download | osc-graphics-c7fb1a1844644536340591d4d0e16180527f1627.tar.gz |
link against shlwapi.dll on Windows for PathIsRelative()
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/layer_text.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1e8d3d4..cdc8415 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,10 @@ AC_CHECK_HEADERS([SDL_ttf.h], , [ AC_MSG_ERROR([Required libSDL_ttf header missing!]) ]) +case $build_os in +*mingw*) LIBS="$LIBS -lShlwapi" +esac + PKG_CHECK_MODULES(FFMPEG, [libavcodec libavformat libavutil libswscale], [ CFLAGS="$CFLAGS $FFMPEG_CFLAGS" CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS" diff --git a/src/layer_text.cpp b/src/layer_text.cpp index bbfff93..fb685ca 100644 --- a/src/layer_text.cpp +++ b/src/layer_text.cpp @@ -8,6 +8,7 @@ #ifdef __WIN32__ #include <windows.h> +#include <Shlwapi.h> #endif #include <SDL.h> |