[DEV] replace 'include guard' with 'pragma once'

This commit is contained in:
2016-02-02 21:18:54 +01:00
parent e90271754f
commit b5bdb4e2db
24 changed files with 35 additions and 101 deletions

View File

@@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ALSA_H__) && defined(ORCHESTRA_BUILD_ALSA)
#define __AUDIO_ORCHESTRA_API_ALSA_H__
#ifdef ORCHESTRA_BUILD_ALSA
namespace audio {
namespace orchestra {

View File

@@ -3,9 +3,9 @@
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ANDROID_H__) && defined(ORCHESTRA_BUILD_JAVA)
#define __AUDIO_ORCHESTRA_API_ANDROID_H__
#ifdef ORCHESTRA_BUILD_JAVA
#include <audio/orchestra/Interface.h>

View File

@@ -3,9 +3,9 @@
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ANDROID_NATIVE_H__) && defined(ORCHESTRA_BUILD_JAVA)
#define __AUDIO_ORCHESTRA_API_ANDROID_NATIVE_H__
#ifdef ORCHESTRA_BUILD_JAVA
#include <audio/orchestra/DeviceInfo.h>
#include <audio/orchestra/mode.h>

View File

@@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_ASIO_H__) && defined(ORCHESTRA_BUILD_ASIO)
#define __AUDIO_ORCHESTRA_API_ASIO_H__
#pragma once
#ifdef ORCHESTRA_BUILD_ASIO
namespace audio {
namespace orchestra {

View File

@@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_CORE_H__) && defined(ORCHESTRA_BUILD_MACOSX_CORE)
#define __AUDIO_ORCHESTRA_API_CORE_H__
#pragma once
#ifdef ORCHESTRA_BUILD_MACOSX_CORE
#include <CoreAudio/AudioHardware.h>

View File

@@ -4,10 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_CORE_IOS_H__) && defined(ORCHESTRA_BUILD_IOS_CORE)
#define __AUDIO_ORCHESTRA_API_CORE_IOS_H__
#pragma once
#ifdef ORCHESTRA_BUILD_IOS_CORE
namespace audio {
namespace orchestra {

View File

@@ -4,10 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_DS_H__) && defined(ORCHESTRA_BUILD_DS)
#define __AUDIO_ORCHESTRA_API_DS_H__
#pragma once
#ifdef ORCHESTRA_BUILD_DS
namespace audio {
namespace orchestra {

View File

@@ -4,13 +4,12 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#pragma once
#if !defined(__AUDIO_ORCHESTRA_DUMMY__) && defined(ORCHESTRA_BUILD_DUMMY)
#define __AUDIO_ORCHESTRA_DUMMY__
#ifdef ORCHESTRA_BUILD_DUMMY
#include <audio/orchestra/Interface.h>
namespace audio {
namespace orchestra {
namespace api {

View File

@@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_JACK_H__) && defined(ORCHESTRA_BUILD_JACK)
#define __AUDIO_ORCHESTRA_API_JACK_H__
#pragma once
#ifdef ORCHESTRA_BUILD_JACK
#include <jack/jack.h>

View File

@@ -4,10 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_PULSE_H__) && defined(ORCHESTRA_BUILD_PULSE)
#define __AUDIO_ORCHESTRA_API_PULSE_H__
#pragma once
#ifdef ORCHESTRA_BUILD_PULSE
namespace audio {
namespace orchestra {

View File

@@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#if !defined(__AUDIO_ORCHESTRA_API_PULSE_DEVICE_H__) && defined(ORCHESTRA_BUILD_PULSE)
#define __AUDIO_ORCHESTRA_API_PULSE_DEVICE_H__
#pragma once
#ifdef ORCHESTRA_BUILD_PULSE
#include <etk/types.h>
#include <audio/orchestra/DeviceInfo.h>