diff options
author | Rajat Goswami <rajat.goswami@hotmail.com> | 2020-03-21 21:29:40 -0400 |
---|---|---|
committer | Rajat Goswami <rajat.goswami@hotmail.com> | 2020-03-23 04:52:36 -0400 |
commit | 2ecf928ae39253f8cc72de1ad1391e8ed140ed6d (patch) | |
tree | 8c6d73d8a76ee63c10159e2d853889164cf6ab62 /drivers | |
parent | cce0a27ec7dd7c11fcb37eb724b0b7e97b3b1478 (diff) |
Adding missing include guards to header files identified by LGTM.
This addresses the issue godotengine/godot#37143
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/alsa/audio_driver_alsa.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/alsa/audio_driver_alsa.h b/drivers/alsa/audio_driver_alsa.h index a8caf0fbae..50bd9e853d 100644 --- a/drivers/alsa/audio_driver_alsa.h +++ b/drivers/alsa/audio_driver_alsa.h @@ -28,12 +28,14 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ -#include "servers/audio_server.h" - #ifdef ALSA_ENABLED +#ifndef AUDIO_DRIVER_ALSA_H +#define AUDIO_DRIVER_ALSA_H + #include "core/os/mutex.h" #include "core/os/thread.h" +#include "servers/audio_server.h" #include <alsa/asoundlib.h> @@ -87,4 +89,6 @@ public: ~AudioDriverALSA(); }; -#endif +#endif // AUDIO_DRIVER_ALSA_H + +#endif // ALSA_ENABLED |