Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
2b9a15d4
Commit
2b9a15d4
authored
Oct 31, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make vdef.h an "include only once" header
parent
34758f90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
vtc_main.c
bin/varnishtest/vtc_main.c
+0
-1
vdef.h
include/vdef.h
+3
-3
No files found.
bin/varnishtest/vtc_main.c
View file @
2b9a15d4
...
...
@@ -42,7 +42,6 @@
#include "vtc.h"
#include "vdef.h"
#include "vev.h"
#include "vfil.h"
#include "vnum.h"
...
...
include/vdef.h
View file @
2b9a15d4
...
...
@@ -32,7 +32,9 @@
*
*/
#ifndef VDEF_H_INCLUDED
#ifdef VDEF_H_INCLUDED
# error "vdef.h included multiple times"
#endif
#define VDEF_H_INCLUDED
/* Safe printf into a fixed-size buffer */
...
...
@@ -160,5 +162,3 @@
# define ___Static_assert(x, y) \
typedef char __assert_## y[(x) ? 1 : -1] __unused
#endif
#endif
/* VDEF_H_INCLUDED */
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