Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
dc1deb3b
Unverified
Commit
dc1deb3b
authored
Jul 01, 2020
by
Alexander Ovchinnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use __GNUC__ macro in the resource script
Fix the default LIBGIT2_FILENAME for GNU windres
parent
71000441
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/CMakeLists.txt
+0
-4
src/win32/git2.rc
+7
-3
No files found.
src/CMakeLists.txt
View file @
dc1deb3b
...
...
@@ -278,10 +278,6 @@ list(SORT SRC_H)
# On Windows use specific platform sources
if
(
WIN32 AND NOT CYGWIN
)
if
(
NOT MSVC
)
ADD_DEFINITIONS
(
-DGCC_WINDRES
)
endif
()
SET
(
WIN_RC
"win32/git2.rc"
)
file
(
GLOB SRC_OS win32/*.c win32/*.h
)
...
...
src/win32/git2.rc
View file @
dc1deb3b
...
...
@@ -2,21 +2,25 @@
#include "../../include/git2/version.h"
#ifndef LIBGIT2_FILENAME
# define LIBGIT2_FILENAME "git2"
# ifdef __GNUC__
# define LIBGIT2_FILENAME git2
# else
# define LIBGIT2_FILENAME "git2"
# endif
#endif
#ifndef LIBGIT2_COMMENTS
# define LIBGIT2_COMMENTS "For more information visit http://libgit2.github.com/"
#endif
#ifdef
GCC_WINDRES
#ifdef
__GNUC__
# define _STR(x) #x
# define STR(x) _STR(x)
#else
# define STR(x) x
#endif
#ifdef
GCC_WINDRES
#ifdef
__GNUC__
VS_VERSION_INFO VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment