kopia lustrzana https://gitlab.com/sane-project/backends
Move __unused__ definition from sane.h to sanei_backend.h. Fixed a typo in sanei_backend.h.
rodzic
f75025e72b
commit
ae35d558dc
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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 <sane/sanei_debug.h>
|
||||
|
||||
#ifdef HAVE_SYS_HW_H
|
||||
|
|
Ładowanie…
Reference in New Issue