Skip to content

Commit

Permalink
redefine stringizing macros for win32 resource scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Razish committed Oct 5, 2023
1 parent c1de4aa commit b89e19e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/qcommon/game_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.

#include "qcommon/q_version.h"

#if !defined(STRING) && !defined(XSTRING)
// rather than including q_shared.h from win32 resource scripts (win32/*.rc)
#define STRING( a ) #a
#define XSTRING( a ) STRING( a )
#endif

// Current version of the single player game
#define VERSION_MAJOR_RELEASE 1
#define VERSION_MINOR_RELEASE 0
Expand Down
6 changes: 6 additions & 0 deletions codemp/qcommon/game_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.

#include "qcommon/q_version.h"

#if !defined(STRING) && !defined(XSTRING)
// rather than including q_shared.h from win32 resource scripts (win32/*.rc)
#define STRING( a ) #a
#define XSTRING( a ) STRING( a )
#endif

// Current version of the multi player game
#define VERSION_MAJOR_RELEASE 1
#define VERSION_MINOR_RELEASE 0
Expand Down

0 comments on commit b89e19e

Please sign in to comment.