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
b2cef77c
Commit
b2cef77c
authored
Jun 30, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: Force 64 bit fileops at compile time
parent
8a062003
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
CMakeLists.txt
+2
-0
src/common.h
+0
-4
No files found.
CMakeLists.txt
View file @
b2cef77c
...
...
@@ -72,6 +72,8 @@ IF (WIN32 AND NOT CYGWIN)
FILE
(
GLOB SRC_PLAT src/win32/*.c
)
ENDIF
()
ADD_DEFINITIONS
(
-D_FILE_OFFSET_BITS=64
)
# Compile and link libgit2
ADD_LIBRARY
(
git2
${
SRC
}
${
SRC_PLAT
}
${
SRC_SHA1
}
${
SRC_ZLIB
}
)
TARGET_LINK_LIBRARIES
(
git2
${
CMAKE_THREAD_LIBS_INIT
}
)
...
...
src/common.h
View file @
b2cef77c
...
...
@@ -2,10 +2,6 @@
#define INCLUDE_common_h__
#include "git2/common.h"
/** Force 64 bit off_t size on POSIX. */
#define _FILE_OFFSET_BITS 64
#include "git2/thread-utils.h"
#include "cc-compat.h"
...
...
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