Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
5bfb3995
Commit
5bfb3995
authored
Apr 21, 2011
by
Douglas Bagnall
Committed by
Rusty Russell
Apr 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: don't unnecessarily redefine _GNU_SOURCE in config.h
Makes it easier to reuse this code in other projects.
parent
d0842865
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
config.h
config.h
+2
-0
tools/configurator/configurator.c
tools/configurator/configurator.c
+2
-0
No files found.
config.h
View file @
5bfb3995
/* Generated by CCAN configurator */
#ifndef CCAN_CONFIG_H
#define CCAN_CONFIG_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
/* Always use GNU extensions. */
#endif
#define CCAN_COMPILER "cc"
#define CCAN_CFLAGS "-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings -DCCAN_STR_DEBUG=1"
...
...
tools/configurator/configurator.c
View file @
5bfb3995
...
...
@@ -394,7 +394,9 @@ int main(int argc, const char *argv[])
printf
(
"/* Generated by CCAN configurator */
\n
"
"#ifndef CCAN_CONFIG_H
\n
"
"#define CCAN_CONFIG_H
\n
"
);
printf
(
"#ifndef _GNU_SOURCE
\n
"
);
printf
(
"#define _GNU_SOURCE /* Always use GNU extensions. */
\n
"
);
printf
(
"#endif
\n
"
);
printf
(
"#define CCAN_COMPILER
\"
%s
\"\n
"
,
argv
[
1
]);
printf
(
"#define CCAN_CFLAGS
\"
%s
\"\n\n
"
,
cmd
+
strlen
(
argv
[
1
])
+
1
);
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]);
i
++
)
...
...
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