Ensure header guards enclose entire header.

This commit is contained in:
Marcel Admiraal
2020-09-03 11:28:55 +01:00
parent 493b308215
commit f6ad1954f7
7 changed files with 28 additions and 27 deletions

View File

@ -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"
@ -75,6 +75,6 @@ public:
~WebRTCDataChannelGDNative();
};
#endif // WEBRTC_DATA_CHANNEL_GDNATIVE_H
#endif // WEBRTC_GDNATIVE_ENABLED
#endif // WEBRTC_DATA_CHANNEL_GDNATIVE_H

View File

@ -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"
@ -68,6 +68,6 @@ public:
~WebRTCPeerConnectionGDNative();
};
#endif // WEBRTC_PEER_CONNECTION_GDNATIVE_H
#endif // WEBRTC_GDNATIVE_ENABLED
#endif // WEBRTC_PEER_CONNECTION_GDNATIVE_H