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

This commit is contained in:
Edouard DUPIN 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,7 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_API_H__
#define __AUDIO_ORCHESTRA_API_H__
#pragma once
#include <sstream>
#include <audio/orchestra/debug.h>
@ -175,4 +173,3 @@ namespace audio {
}
}
#endif

View File

@ -4,14 +4,11 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_DEVICE_INFO_H__
#define __AUDIO_ORCHESTRA_DEVICE_INFO_H__
#pragma once
#include <audio/format.h>
#include <audio/channel.h>
namespace audio {
namespace orchestra {
/**
@ -50,5 +47,3 @@ namespace audio {
}
}
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_FLAGS_H__
#define __AUDIO_ORCHESTRA_FLAGS_H__
#pragma once
#include <etk/types.h>
namespace audio {
namespace orchestra {
class Flags {
@ -23,5 +20,3 @@ namespace audio {
};
}
}
#endif

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_INTERFACE_H__
#define __AUDIO_ORCHESTRA_INTERFACE_H__
#pragma once
#include <string>
#include <vector>
@ -307,4 +305,3 @@ namespace audio {
}
}
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_STREAM_OPTION_H__
#define __AUDIO_ORCHESTRA_STREAM_OPTION_H__
#pragma once
#include <audio/orchestra/Flags.h>
namespace audio {
namespace orchestra {
enum timestampMode {
@ -35,5 +32,3 @@ namespace audio {
}
}
#endif

View File

@ -4,10 +4,7 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_STREAM_PARAMETER_H__
#define __AUDIO_ORCHESTRA_STREAM_PARAMETER_H__
#pragma once
namespace audio {
namespace orchestra {
@ -31,5 +28,3 @@ namespace audio {
}
}
#endif

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>

View File

@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#pragma once
#ifndef __AUDIO_ORCHESTRA_CB_H__
#define __AUDIO_ORCHESTRA_CB_H__
#include <thread>
#include <condition_variable>
#include <mutex>
@ -24,7 +23,3 @@
#include <audio/orchestra/StreamOptions.h>
#include <audio/orchestra/StreamParameters.h>
#endif

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_DEBUG_H__
#define __AUDIO_ORCHESTRA_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -41,5 +39,3 @@ namespace audio {
} \
} while (0)
#endif

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_ERROR_H__
#define __AUDIO_ORCHESTRA_ERROR_H__
#pragma once
#include <etk/types.h>
@ -22,5 +20,3 @@ namespace audio {
};
}
}
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_MODE_H__
#define __AUDIO_ORCHESTRA_MODE_H__
#pragma once
#include <etk/types.h>
namespace audio {
namespace orchestra {
enum mode {
@ -24,4 +21,3 @@ namespace audio {
std::ostream& operator <<(std::ostream& _os, enum audio::orchestra::mode _obj);
}
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_STATE_H__
#define __AUDIO_ORCHESTRA_STATE_H__
#pragma once
#include <etk/types.h>
namespace audio {
namespace orchestra {
enum state {
@ -22,4 +19,3 @@ namespace audio {
}
}
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_STATUS_H__
#define __AUDIO_ORCHESTRA_STATUS_H__
#pragma once
#include <etk/types.h>
namespace audio {
namespace orchestra {
enum status {
@ -23,4 +20,3 @@ namespace audio {
}
}
#endif

View File

@ -4,14 +4,11 @@
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#ifndef __AUDIO_ORCHESTRA_TYPE_H__
#define __AUDIO_ORCHESTRA_TYPE_H__
#pragma once
#include <etk/types.h>
#include <etk/stdTools.h>
namespace audio {
namespace orchestra {
/**
@ -31,4 +28,3 @@ namespace audio {
}
}
#endif