Skip to content

Commit

Permalink
Merge pull request #16 from mrikola/win32-fixes
Browse files Browse the repository at this point in the history
A few changes to keep the executable compiling on MinGW
  • Loading branch information
Interrupt committed Jun 11, 2018
2 parents c3f1070 + 3bf89f0 commit 52ed80e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions externals/findsdl2-cmake/FindSDL2_mixer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

find_path(SDL2_MIXER_INCLUDE_DIR SDL_mixer.h
HINTS
$ENV{SDL2_MIXER_DIR}
ENV SDL2MIXERDIR
ENV SDL2DIR
PATH_SUFFIXES SDL2
Expand All @@ -61,6 +62,7 @@ endif()
find_library(SDL2_MIXER_LIBRARY
NAMES SDL2_mixer
HINTS
$ENV{SDL2_MIXER_DIR}
ENV SDL2MIXERDIR
ENV SDL2DIR
PATH_SUFFIXES lib ${VC_LIB_PATH_SUFFIX}
Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/RES/Source/resfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>

#include "res.h"
#include "res_.h"
Expand Down Expand Up @@ -122,7 +123,6 @@ size_t DG_strlcat(char* dst, const char* src, size_t dstsize)
#ifndef _WIN32

#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>

static int check_and_append_pathelem(char dirbuf[PATH_MAX], const char* elem)
Expand Down
1 change: 1 addition & 0 deletions src/stubs/Carbon/carbon_stubs.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "Carbon.h"

#include <SDL.h>
#include <stdlib.h>

#include "lg.h"

Expand Down

0 comments on commit 52ed80e

Please sign in to comment.