File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,6 @@ list(SORT SRC_H)
278278
279279# On Windows use specific platform sources
280280if (WIN32 AND NOT CYGWIN )
281- if (NOT MSVC )
282- ADD_DEFINITIONS (-DGCC_WINDRES)
283- endif ()
284-
285281 SET (WIN_RC "win32/git2.rc" )
286282
287283 file (GLOB SRC_OS win32 /*.c win32 /*.h)
Original file line number Diff line number Diff line change 22#include "../../include/git2/version.h"
33
44#ifndef LIBGIT2_FILENAME
5- # define LIBGIT2_FILENAME "git2"
5+ # ifdef __GNUC__
6+ # define LIBGIT2_FILENAME git2
7+ # else
8+ # define LIBGIT2_FILENAME "git2"
9+ # endif
610#endif
711
812#ifndef LIBGIT2_COMMENTS
913# define LIBGIT2_COMMENTS "For more information visit http://libgit2.github.com/"
1014#endif
1115
12- #ifdef GCC_WINDRES
16+ #ifdef __GNUC__
1317# define _STR(x) #x
1418# define STR(x) _STR(x)
1519#else
1620# define STR(x) x
1721#endif
1822
19- #ifdef GCC_WINDRES
23+ #ifdef __GNUC__
2024VS_VERSION_INFO VERSIONINFO
2125#else
2226VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
You can’t perform that action at this time.
0 commit comments