Browse Source

Fixed warnings if compiling loopwave programs with C++.

Philipp Wiesemann 8 năm trước cách đây
mục cha
commit
dfa8fb3105
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      test/loopwave.c
  2. 1 1
      test/loopwavequeue.c

+ 1 - 1
test/loopwave.c

@@ -30,7 +30,7 @@
 
 #include "SDL.h"
 
-struct
+static struct
 {
     SDL_AudioSpec spec;
     Uint8 *sound;               /* Pointer to wave data */

+ 1 - 1
test/loopwavequeue.c

@@ -25,7 +25,7 @@
 #include <signal.h>
 #endif
 
-struct
+static struct
 {
     SDL_AudioSpec spec;
     Uint8 *sound;               /* Pointer to wave data */