diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-10-07 00:02:02 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-10-09 17:21:38 +0200 |
commit | 609135c8df1b129fab396f83c49667f9944d7802 (patch) | |
tree | 7fc0717dbb56e07658f354a5234c07eac1f60268 /HACKING.md | |
parent | 1b136a5defc76bbe7192259a983ea195c8a8f753 (diff) | |
download | libgphoto2-609135c8df1b129fab396f83c49667f9944d7802.tar.gz |
HACKING.md: Update include guard macro name
Diffstat (limited to 'HACKING.md')
-rw-r--r-- | HACKING.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/HACKING.md b/HACKING.md index 04f43d997..bef15b310 100644 --- a/HACKING.md +++ b/HACKING.md @@ -80,14 +80,17 @@ Header Files Please use the following layout: /* Licence, author, etc. */ - #ifndef __FILE_NAME_H__ - #define __FILE_NAME_H__ + #ifndef LIBGPHOTO2_FILE_NAME_H + #define LIBGPHOTO2_FILE_NAME_H #include <whatever is needed for the _header_> /* Declarations */ - #endif /* __FILE_NAME_H__ */ + #endif /* !defined(LIBGPHOTO2_FILE_NAME_H) */ + +The include guard macro starting with the project name should avoid +potential naming conflicts with another project's `file_name.h`. Camlib |