Skip to content

Commit

Permalink
VS2017: Fix version number in config.h. Add macro to compensate for V…
Browse files Browse the repository at this point in the history
…S2017's ignorance towards S_ISREG() and stat()
  • Loading branch information
joncampbell123 committed Dec 25, 2017
1 parent f64f058 commit 841d4d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <algorithm> // std::transform
#ifdef WIN32
# include <signal.h>
# include <sys/stat.h>
# include <process.h>
#endif

Expand All @@ -60,6 +61,7 @@
#include "menu.h"
#include "SDL_video.h"
#include "ide.h"
#include "mapper.h"

#include "../src/libs/gui_tk/gui_tk.h"

Expand All @@ -85,6 +87,10 @@
#include "cross.h"
#include "control.h"

#if defined(WIN32) && !defined(S_ISREG)
# define S_ISREG(x) ((x & S_IFREG) == S_IFREG)
#endif

extern bool keep_umb_on_boot;
extern bool keep_private_area_on_boot;
extern bool dos_kernel_disabled;
Expand Down
2 changes: 1 addition & 1 deletion vs2015/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
#undef TM_IN_SYS_TIME

/* Version number of package */
#define VERSION "DOSBox-X"
#define VERSION "0.82.1"

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
Expand Down

0 comments on commit 841d4d2

Please sign in to comment.