Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpdevplus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Deucе
xpdevplus
Commits
c646b573
Commit
c646b573
authored
3 years ago
by
Stephen Hurd
Browse files
Options
Downloads
Patches
Plain Diff
Move defines into CMakeLists.txt
These aren't dynamically detected.
parent
c250cccd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-0
3 additions, 0 deletions
CMakeLists.txt
xpdevplus.h.in
+0
-11
0 additions, 11 deletions
xpdevplus.h.in
with
3 additions
and
11 deletions
CMakeLists.txt
+
3
−
0
View file @
c646b573
...
...
@@ -63,3 +63,6 @@ add_library(xpdevplus STATIC ${SOURCE})
target_link_libraries
(
xpdevplus ciolib comio encode hash uifc xpdev
)
target_include_directories
(
xpdevplus PUBLIC
${
XPDevPlus_BINARY_DIR
}
)
target_compile_options
(
xpdevplus PUBLIC
"SHELL:-include xpdevplus.h"
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
target_compile_options
(
xpdevplus PUBLIC POSIX_C_SOURCE 200809L _DEFAULT_SOURCE _BSD_SOURCE SPEED_MACROS_ONLY _GNU_SOURCE _FILE_OFFSET_BITS 64
)
endif
()
This diff is collapsed.
Click to expand it.
xpdevplus.h.in
+
0
−
11
View file @
c646b573
#ifndef XPDEV_PLUS_H
#define XPDEV_PLUS_H
#ifdef __linux__
#define POSIX_C_SOURCE 200809L
#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define SPEED_MACROS_ONLY
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define _FILE_OFFSET_BITS 64
#endif
#cmakedefine WITH_SDL
#cmakedefine N_CURSES_LIB
#cmakedefine HAS_INTTYPES_H
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment