summaryrefslogtreecommitdiff
path: root/HACKING.md
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-07 00:02:02 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-09 17:21:38 +0200
commit609135c8df1b129fab396f83c49667f9944d7802 (patch)
tree7fc0717dbb56e07658f354a5234c07eac1f60268 /HACKING.md
parent1b136a5defc76bbe7192259a983ea195c8a8f753 (diff)
downloadlibgphoto2-609135c8df1b129fab396f83c49667f9944d7802.tar.gz
HACKING.md: Update include guard macro name
Diffstat (limited to 'HACKING.md')
-rw-r--r--HACKING.md9
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