mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 18:09:59 +00:00
Add error message if code is compiled with a C++ compiler.
This commit is contained in:
parent
6b1948a329
commit
f22b1f7aa7
@ -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
|
||||
|
@ -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 */
|
||||
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user