diff --git a/include/sane/sane.h b/include/sane/sane.h index 918263442..26dd18525 100644 --- a/include/sane/sane.h +++ b/include/sane/sane.h @@ -20,22 +20,6 @@ extern "C" { #endif -/* - * Compiler related options - */ - -#ifdef __GNUC__ - -/* __unused tells the compiler a variable is unused, so the - * compiler doesn't spit a warning. */ -#define __unused__ __attribute__((unused)) - -#else - -#define __unused__ - -#endif - /* * SANE types and defines */ diff --git a/include/sane/sanei_backend.h b/include/sane/sanei_backend.h index cf37ff713..09820e6f5 100644 --- a/include/sane/sanei_backend.h +++ b/include/sane/sanei_backend.h @@ -2,7 +2,7 @@ * Compatibility header file for backends * * This file provides some defines for macros missing on some platforms. - * It also has the SANE API entry points. sanei_backend.h muste be included + * It also has the SANE API entry points. sanei_backend.h must be included * by every backend. * * @sa sanei.h sanei_thread.h @@ -12,6 +12,22 @@ * @{ */ +/* + * Compiler related options + */ + +#ifdef __GNUC__ + +/* __unused tells the compiler a variable is unused, so the + * compiler doesn't spit a warning. */ +#define __unused__ __attribute__((unused)) + +#else + +#define __unused__ + +#endif + #include #ifdef HAVE_SYS_HW_H