Skip to content

Commit a2e66f1

Browse files
committed
llbuild: guard the complete header from duplicate inclusion
The header guards prevent re-processing the header when re-referenced. We were not guarding the entire file. Although this matters very little in practice in this library as the headers will not change behaviour and inclusion into Swift will go through a module, this is a small drive-by clean up that makes code more idiomatic.
1 parent 232d951 commit a2e66f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

products/libllbuild/include/llbuild/llbuild.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ LLBUILD_EXPORT int llb_get_api_version(void);
3030

3131
// The BuildSystem component.
3232
#include "buildsystem.h"
33-
#endif
3433

3534
// The Database component.
3635
#include "db.h"
@@ -39,3 +38,5 @@ LLBUILD_EXPORT int llb_get_api_version(void);
3938
#include "buildvalue.h"
4039

4140
#include "ninja.h"
41+
42+
#endif

0 commit comments

Comments
 (0)