diff options
author | Pavel Machek <pavel@suse.cz> | 2008-04-14 12:31:35 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:36 -0400 |
commit | ad5fada51d33b408ad3d2d0848ef6744b5daf06f (patch) | |
tree | 9b77b415c2698f0a7bac36815e8639134af4a116 /include/sound | |
parent | a8bb1bad9b16ab91de6568ac9356b8f705f7272b (diff) |
[ALSA] sound/core.h: evil #ifdefs
snd_minor_info_oss_* is an function returning int _or_ comment,
depending on config parameters. That is truly evil, fix it.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 356659de6b85..695ee53488a3 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -277,8 +277,8 @@ int snd_minor_info_done(void); | |||
277 | int snd_minor_info_oss_init(void); | 277 | int snd_minor_info_oss_init(void); |
278 | int snd_minor_info_oss_done(void); | 278 | int snd_minor_info_oss_done(void); |
279 | #else | 279 | #else |
280 | #define snd_minor_info_oss_init() /*NOP*/ | 280 | static inline int snd_minor_info_oss_init(void) { return 0; } |
281 | #define snd_minor_info_oss_done() /*NOP*/ | 281 | static inline int snd_minor_info_oss_done(void) { return 0; } |
282 | #endif | 282 | #endif |
283 | 283 | ||
284 | /* memory.c */ | 284 | /* memory.c */ |