diff --git a/libraries/AP_IRLock/AP_IRLock_PX4.h b/libraries/AP_IRLock/AP_IRLock_PX4.h index 105bcc51f1..f9168dd53e 100644 --- a/libraries/AP_IRLock/AP_IRLock_PX4.h +++ b/libraries/AP_IRLock/AP_IRLock_PX4.h @@ -4,9 +4,7 @@ * Created on: Nov 10, 2014 * Author: MLandes */ - -#ifndef AP_IRLOCK_PX4_H_ -#define AP_IRLOCK_PX4_H_ +#pragma once #include "IRLock.h" @@ -25,5 +23,3 @@ private: int _fd; uint64_t _last_timestamp; }; - -#endif /* AP_IRLOCK_PX4_H_ */ diff --git a/libraries/AP_IRLock/IRLock.h b/libraries/AP_IRLock/IRLock.h index 26ac92c596..d134ebf184 100644 --- a/libraries/AP_IRLock/IRLock.h +++ b/libraries/AP_IRLock/IRLock.h @@ -19,9 +19,7 @@ * Created on: Nov 10, 2014 * Author: MLandes */ - -#ifndef __IRLOCK_H__ -#define __IRLOCK_H__ +#pragma once #include @@ -75,6 +73,3 @@ protected: irlock_target_info _target_info[IRLOCK_MAX_TARGETS]; }; - - -#endif /* __IRLOCK_H__ */