Skip to content

Commit

Permalink
Small correction in main.hpp so SDL2 audio class header is included w…
Browse files Browse the repository at this point in the history
…hen built against SDL2. I knew I was forgetting something :)
  • Loading branch information
vanfanel committed Dec 17, 2015
1 parent 9c19685 commit ff89f90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/main.hpp
Expand Up @@ -3,8 +3,12 @@
#include "globals.hpp"

#ifdef COMPILE_SOUND_CODE
#ifdef SDL2
#include "sdl2/audio.hpp"
#else
#include "sdl/audio.hpp"
#endif
#endif

namespace cannonball
{
Expand Down Expand Up @@ -36,4 +40,4 @@ namespace cannonball
STATE_GAME,
STATE_QUIT
};
}
}

0 comments on commit ff89f90

Please sign in to comment.