Add error message if code is compiled with a C++ compiler.

This commit is contained in:
Erik de Castro Lopo 2005-02-01 10:46:28 +00:00
parent 6b1948a329
commit f22b1f7aa7
3 changed files with 34 additions and 23 deletions

View File

@ -27,6 +27,9 @@
#ifndef G72X_PRIVATE_H
#define G72X_PRIVATE_H
#ifdef __cplusplus
#error "This code is not designed to be compiled with a C++ compiler."
#endif
/*
** The following is the definition of the state structure used by the

View File

@ -11,6 +11,10 @@
#define USE_FLOAT_MUL
#define FAST
#define WAV49
#ifdef __cplusplus
#error "This code is not designed to be compiled with a C++ compiler."
#endif
/* Added by Erik de Castro Lopo */

View File

@ -29,6 +29,10 @@
#include <stdint.h>
#endif
#ifdef __cplusplus
#error "This code is not designed to be compiled with a C++ compiler."
#endif
#ifdef UNUSED
#elif defined (__GNUC__)
# define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))