Ensure header guards enclose entire header.

(cherry picked from commit f6ad1954f7)
This commit is contained in:
Marcel Admiraal
2020-09-03 11:28:55 +01:00
committed by Rémi Verschelde
parent ee97e45a69
commit c6cccdf0c6
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