changeset 3335:af2a76fdba9c

CVS is still broken with gcc3. This fixes it. But please explain _why_ the 'volatile' attribute is needed with these variables and why is it supposed to protect them ?
author pl
date Wed, 05 Dec 2001 10:31:10 +0000
parents f7ba4fb75b69
children 8818c12743a8
files libao2/audio_plugin.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/audio_plugin.h	Wed Dec 05 08:58:09 2001 +0000
+++ b/libao2/audio_plugin.h	Wed Dec 05 10:31:10 2001 +0000
@@ -26,7 +26,7 @@
   float delay_fix;  /* Fix delay */
 }ao_plugin_data_t;
 
-extern ao_plugin_data_t ao_plugin_data;
+extern volatile ao_plugin_data_t ao_plugin_data;
 
 // Plugin confuguration data set by cmd-line parameters
 typedef struct ao_plugin_cfg_s
@@ -36,7 +36,7 @@
   int pl_delay_len;	// Number of samples to delay sound output
 } ao_plugin_cfg_t;
 
-extern ao_plugin_cfg_t ao_plugin_cfg;
+extern volatile ao_plugin_cfg_t ao_plugin_cfg;
 
 // Configuration defaults
 #define CFG_DEFAULTS { \