C preprocessor macros beginning/ending with underscores are
reserved for system use as well as macros containing a double
underscore anywhere, so application software macros are
supposed to be named differently.
For a header file gphoto2-abilities-list.h, this
consistently uses a macro name
LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
for the usual
#ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
#define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
... content of the header file ...
#endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */
Found using "clang -Weverything".
This should work, unless when run with an ancient C preprocessor
which might only the first 8 or 10 characters to distinguish
macro names and ignores the remainder of the name.
Use it for lunkwill-canon-capture.c
Owner setting and reporting (sample-owner)
Very basic hello world program now in sample-autodetect,
multi camrea program in sample-multi-detect.
README updated
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11372 67ed7778-7388-44ab-90cf-0a291f65f57c