AP_HAL_SITL: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:28 -02:00 committed by Andrew Tridgell
parent 6f028502b0
commit bcdc3336de
10 changed files with 10 additions and 53 deletions

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_H__
#define __AP_HAL_SITL_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
@ -9,6 +7,3 @@
#include "HAL_SITL_Class.h"
#endif // CONFIG_HAL_BOARD
#endif // __AP_HAL_SITL_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_NAMESPACE_H__
#define __AP_HAL_SITL_NAMESPACE_H__
#pragma once
namespace HALSITL {
class UARTDriver;
@ -15,5 +13,3 @@ class RCInput;
class Util;
class Semaphore;
}
#endif // __AP_HAL_SITL_NAMESPACE_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_PRIVATE_H__
#define __AP_HAL_SITL_PRIVATE_H__
#pragma once
#include "AP_HAL_SITL_Namespace.h"
#include "Scheduler.h"
@ -8,6 +6,3 @@
#include "UARTDriver.h"
#include "SITL_State.h"
#include "Semaphores.h"
#endif // __AP_HAL_SITL_PRIVATE_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_ANALOG_IN_H__
#define __AP_HAL_SITL_ANALOG_IN_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_SITL_Namespace.h"
@ -46,5 +44,3 @@ private:
static ADCSource* _channels[SITL_INPUT_MAX_CHANNELS];
SITL_State *_sitlState;
};
#endif // __AP_HAL_SITL_ANALOG_IN_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_RCOUTPUT_H__
#define __AP_HAL_SITL_RCOUTPUT_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
@ -28,5 +26,3 @@ private:
};
#endif
#endif // __AP_HAL_SITL_RCOUTPUT_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_STATE_H__
#define __AP_HAL_SITL_STATE_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
@ -219,5 +217,3 @@ private:
};
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
#endif // __AP_HAL_SITL_STATE_H__

View File

@ -1,7 +1,4 @@
#ifndef __AP_HAL_SITL_STORAGE_H__
#define __AP_HAL_SITL_STORAGE_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_SITL_Namespace.h"
@ -19,5 +16,3 @@ private:
int _eeprom_fd;
void _eeprom_open(void);
};
#endif // __AP_HAL_SITL_STORAGE_H__

View File

@ -1,7 +1,6 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#pragma once
#ifndef __AP_HAL_SITL_UART_DRIVER_H__
#define __AP_HAL_SITL_UART_DRIVER_H__
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
@ -101,5 +100,3 @@ private:
};
#endif
#endif // __AP_HAL_SITL_UART_DRIVER_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_SITL_UTIL_H__
#define __AP_HAL_SITL_UTIL_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_SITL_Namespace.h"
@ -33,5 +31,3 @@ public:
private:
SITL_State *sitlState;
};
#endif // __AP_HAL_SITL_UTIL_H__

View File

@ -1,6 +1,4 @@
#ifndef __FENV_POLYFILL_H__
#define __FENV_POLYFILL_H__
#pragma once
#if (defined __APPLE__) && (defined(__i386__) || defined(__x86_64__))
@ -27,6 +25,3 @@ feenableexcept (unsigned int excepts)
}
#endif // APPLE
#endif // __FENV_POLYFILL_H__