Browse Source

AP_HAL_SITL: replace header guard with pragma once

master
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
bcdc3336de
  1. 7
      libraries/AP_HAL_SITL/AP_HAL_SITL.h
  2. 6
      libraries/AP_HAL_SITL/AP_HAL_SITL_Namespace.h
  3. 7
      libraries/AP_HAL_SITL/AP_HAL_SITL_Private.h
  4. 6
      libraries/AP_HAL_SITL/AnalogIn.h
  5. 6
      libraries/AP_HAL_SITL/RCOutput.h
  6. 6
      libraries/AP_HAL_SITL/SITL_State.h
  7. 7
      libraries/AP_HAL_SITL/Storage.h
  8. 5
      libraries/AP_HAL_SITL/UARTDriver.h
  9. 6
      libraries/AP_HAL_SITL/Util.h
  10. 7
      libraries/AP_HAL_SITL/fenv_polyfill.h

7
libraries/AP_HAL_SITL/AP_HAL_SITL.h

@ -1,6 +1,4 @@ @@ -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 @@ @@ -9,6 +7,3 @@
#include "HAL_SITL_Class.h"
#endif // CONFIG_HAL_BOARD
#endif // __AP_HAL_SITL_H__

6
libraries/AP_HAL_SITL/AP_HAL_SITL_Namespace.h

@ -1,6 +1,4 @@ @@ -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; @@ -15,5 +13,3 @@ class RCInput;
class Util;
class Semaphore;
}
#endif // __AP_HAL_SITL_NAMESPACE_H__

7
libraries/AP_HAL_SITL/AP_HAL_SITL_Private.h

@ -1,6 +1,4 @@ @@ -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 @@ @@ -8,6 +6,3 @@
#include "UARTDriver.h"
#include "SITL_State.h"
#include "Semaphores.h"
#endif // __AP_HAL_SITL_PRIVATE_H__

6
libraries/AP_HAL_SITL/AnalogIn.h

@ -1,6 +1,4 @@ @@ -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: @@ -46,5 +44,3 @@ private:
static ADCSource* _channels[SITL_INPUT_MAX_CHANNELS];
SITL_State *_sitlState;
};
#endif // __AP_HAL_SITL_ANALOG_IN_H__

6
libraries/AP_HAL_SITL/RCOutput.h

@ -1,6 +1,4 @@ @@ -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: @@ -28,5 +26,3 @@ private:
};
#endif
#endif // __AP_HAL_SITL_RCOUTPUT_H__

6
libraries/AP_HAL_SITL/SITL_State.h

@ -1,6 +1,4 @@ @@ -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: @@ -219,5 +217,3 @@ private:
};
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
#endif // __AP_HAL_SITL_STATE_H__

7
libraries/AP_HAL_SITL/Storage.h

@ -1,7 +1,4 @@ @@ -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: @@ -19,5 +16,3 @@ private:
int _eeprom_fd;
void _eeprom_open(void);
};
#endif // __AP_HAL_SITL_STORAGE_H__

5
libraries/AP_HAL_SITL/UARTDriver.h

@ -1,7 +1,6 @@ @@ -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: @@ -101,5 +100,3 @@ private:
};
#endif
#endif // __AP_HAL_SITL_UART_DRIVER_H__

6
libraries/AP_HAL_SITL/Util.h

@ -1,6 +1,4 @@ @@ -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: @@ -33,5 +31,3 @@ public:
private:
SITL_State *sitlState;
};
#endif // __AP_HAL_SITL_UTIL_H__

7
libraries/AP_HAL_SITL/fenv_polyfill.h

@ -1,6 +1,4 @@ @@ -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) @@ -27,6 +25,3 @@ feenableexcept (unsigned int excepts)
}
#endif // APPLE
#endif // __FENV_POLYFILL_H__

Loading…
Cancel
Save