Skip to content

Commit

Permalink
Merge pull request godotengine#41731 from madmiraal/fix-header-guards
Browse files Browse the repository at this point in the history
Ensure header guards enclose entire header.
  • Loading branch information
akien-mga authored Sep 3, 2020
2 parents 493b308 + f6ad195 commit 315ee66
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 27 deletions.
8 changes: 4 additions & 4 deletions core/io/file_access_zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef MINIZIP_ENABLED

#ifndef FILE_ACCESS_ZIP_H
#define FILE_ACCESS_ZIP_H

#ifdef MINIZIP_ENABLED

#include "core/io/file_access_pack.h"
#include "core/map.h"

Expand Down Expand Up @@ -113,6 +113,6 @@ class FileAccessZip : public FileAccess {
~FileAccessZip();
};

#endif // FILE_ACCESS_ZIP_H

#endif // MINIZIP_ENABLED

#endif // FILE_ACCESS_ZIP_H
8 changes: 4 additions & 4 deletions drivers/alsa/audio_driver_alsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef ALSA_ENABLED

#ifndef AUDIO_DRIVER_ALSA_H
#define AUDIO_DRIVER_ALSA_H

#ifdef ALSA_ENABLED

#include "core/os/mutex.h"
#include "core/os/thread.h"
#include "servers/audio_server.h"
Expand Down Expand Up @@ -88,6 +88,6 @@ class AudioDriverALSA : public AudioDriver {
~AudioDriverALSA() {}
};

#endif // AUDIO_DRIVER_ALSA_H

#endif // ALSA_ENABLED

#endif // AUDIO_DRIVER_ALSA_H
7 changes: 4 additions & 3 deletions drivers/alsamidi/midi_driver_alsamidi.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef ALSAMIDI_ENABLED

#ifndef MIDI_DRIVER_ALSAMIDI_H
#define MIDI_DRIVER_ALSAMIDI_H

#ifdef ALSAMIDI_ENABLED

#include "core/os/midi_driver.h"
#include "core/os/mutex.h"
#include "core/os/thread.h"
Expand Down Expand Up @@ -64,5 +64,6 @@ class MIDIDriverALSAMidi : public MIDIDriver {
virtual ~MIDIDriverALSAMidi();
};

#endif // MIDI_DRIVER_ALSAMIDI_H
#endif // ALSAMIDI_ENABLED

#endif // MIDI_DRIVER_ALSAMIDI_H
8 changes: 4 additions & 4 deletions drivers/pulseaudio/audio_driver_pulseaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef PULSEAUDIO_ENABLED

#ifndef AUDIO_DRIVER_PULSEAUDIO_H
#define AUDIO_DRIVER_PULSEAUDIO_H

#ifdef PULSEAUDIO_ENABLED

#include "core/os/mutex.h"
#include "core/os/thread.h"
#include "servers/audio_server.h"
Expand Down Expand Up @@ -124,6 +124,6 @@ class AudioDriverPulseAudio : public AudioDriver {
~AudioDriverPulseAudio() {}
};

#endif // AUDIO_DRIVER_PULSEAUDIO_H

#endif // PULSEAUDIO_ENABLED

#endif // AUDIO_DRIVER_PULSEAUDIO_H
8 changes: 4 additions & 4 deletions modules/cvtt/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef TOOLS_ENABLED

#ifndef CVTT_REGISTER_TYPES_H
#define CVTT_REGISTER_TYPES_H

#ifdef TOOLS_ENABLED

void register_cvtt_types();
void unregister_cvtt_types();

#endif // CVTT_REGISTER_TYPES_H

#endif // TOOLS_ENABLED

#endif // CVTT_REGISTER_TYPES_H
8 changes: 4 additions & 4 deletions modules/webrtc/webrtc_data_channel_gdnative.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef WEBRTC_GDNATIVE_ENABLED

#ifndef WEBRTC_DATA_CHANNEL_GDNATIVE_H
#define WEBRTC_DATA_CHANNEL_GDNATIVE_H

#ifdef WEBRTC_GDNATIVE_ENABLED

#include "modules/gdnative/include/net/godot_net.h"
#include "webrtc_data_channel.h"

Expand Down Expand Up @@ -75,6 +75,6 @@ class WebRTCDataChannelGDNative : public WebRTCDataChannel {
~WebRTCDataChannelGDNative();
};

#endif // WEBRTC_DATA_CHANNEL_GDNATIVE_H

#endif // WEBRTC_GDNATIVE_ENABLED

#endif // WEBRTC_DATA_CHANNEL_GDNATIVE_H
8 changes: 4 additions & 4 deletions modules/webrtc/webrtc_peer_connection_gdnative.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifdef WEBRTC_GDNATIVE_ENABLED

#ifndef WEBRTC_PEER_CONNECTION_GDNATIVE_H
#define WEBRTC_PEER_CONNECTION_GDNATIVE_H

#ifdef WEBRTC_GDNATIVE_ENABLED

#include "modules/gdnative/include/net/godot_net.h"
#include "webrtc_peer_connection.h"

Expand Down Expand Up @@ -68,6 +68,6 @@ class WebRTCPeerConnectionGDNative : public WebRTCPeerConnection {
~WebRTCPeerConnectionGDNative();
};

#endif // WEBRTC_PEER_CONNECTION_GDNATIVE_H

#endif // WEBRTC_GDNATIVE_ENABLED

#endif // WEBRTC_PEER_CONNECTION_GDNATIVE_H

0 comments on commit 315ee66

Please sign in to comment.