Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2e66f1

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 littlein practice in this library as the headers will not change behaviour andinclusion into Swift will go through a module, this is a small drive-byclean up that makes code more idiomatic.
1 parent232d951 commita2e66f1

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)

[8]ページ先頭

©2009-2025 Movatter.jp