vsrc/isrc, use an explicit #ifdef "PULSE_FUN_TYPES" guard
to avoid duplicate definition
This commit is contained in:
parent
8109b4874e
commit
73c9a79c6c
|
|
@ -138,7 +138,8 @@ typedef struct sISRCmodel {
|
|||
|
||||
/* source types */
|
||||
|
||||
#ifndef PULSE
|
||||
#ifndef PULSE_FUN_TYPES
|
||||
#define PULSE_FUN_TYPES
|
||||
#define PULSE 1
|
||||
#define SINE 2
|
||||
#define EXP 3
|
||||
|
|
@ -148,7 +149,7 @@ typedef struct sISRCmodel {
|
|||
#define TRNOISE 7
|
||||
#define TRRANDOM 8
|
||||
#define EXTERNAL 9
|
||||
#endif /*PULSE*/
|
||||
#endif
|
||||
|
||||
/* device parameters */
|
||||
#define ISRC_DC 1
|
||||
|
|
|
|||
|
|
@ -164,7 +164,8 @@ typedef struct sVSRCmodel {
|
|||
} VSRCmodel;
|
||||
|
||||
/* source function types (shared with current sources) */
|
||||
#ifndef PULSE
|
||||
#ifndef PULSE_FUN_TYPES
|
||||
#define PULSE_FUN_TYPES
|
||||
#define PULSE 1
|
||||
#define SINE 2
|
||||
#define EXP 3
|
||||
|
|
@ -174,7 +175,7 @@ typedef struct sVSRCmodel {
|
|||
#define TRNOISE 7
|
||||
#define TRRANDOM 8
|
||||
#define EXTERNAL 9
|
||||
#endif /*PULSE*/
|
||||
#endif
|
||||
|
||||
/* device parameters */
|
||||
#define VSRC_DC 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue