diff --git a/libraries/GCS_Console/GCS_Console.h b/libraries/GCS_Console/GCS_Console.h index ba15c6cf9d..9d95e4da64 100644 --- a/libraries/GCS_Console/GCS_Console.h +++ b/libraries/GCS_Console/GCS_Console.h @@ -1,6 +1,4 @@ - -#ifndef __GCS_CONSOLE_H__ -#define __GCS_CONSOLE_H__ +#pragma once #include @@ -21,5 +19,3 @@ void gcs_console_handle_data16(mavlink_message_t* msg); void gcs_console_handle_data32(mavlink_message_t* msg); void gcs_console_send(mavlink_channel_t chan); - -#endif // __GCS_CONSOLE_H__ diff --git a/libraries/GCS_Console/examples/Console/simplegcs.h b/libraries/GCS_Console/examples/Console/simplegcs.h index b3d86c3733..738cf4f0ef 100644 --- a/libraries/GCS_Console/examples/Console/simplegcs.h +++ b/libraries/GCS_Console/examples/Console/simplegcs.h @@ -1,6 +1,4 @@ - -#ifndef __SIMPLE_GCS_H__ -#define __SIMPLE_GCS_H__ +#pragma once #include @@ -10,6 +8,3 @@ bool try_send_statustext(mavlink_channel_t chan, const char *text, int len); void simplegcs_update(mavlink_channel_t chan); void handle_message(mavlink_channel_t chan, mavlink_message_t* msg); - -#endif // __SIMPLE_GCS_H__ -