From 609135c8df1b129fab396f83c49667f9944d7802 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Thu, 7 Oct 2021 00:02:02 +0200 Subject: HACKING.md: Update include guard macro name --- HACKING.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'HACKING.md') 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 /* 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 -- cgit v1.2.1