Move __unused__ definition from sane.h to sanei_backend.h. Fixed a typo in sanei_backend.h.

merge-requests/1/head
Frank Zago 2004-11-13 20:29:14 +00:00
rodzic f75025e72b
commit ae35d558dc
2 zmienionych plików z 17 dodań i 17 usunięć

Wyświetl plik

@ -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
*/

Wyświetl plik

@ -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