Replace all include guard ifdefs with "#pragma once"

This commit is contained in:
lioncash
2014-02-10 13:54:46 -05:00
committed by Lioncash
parent a0a65a2906
commit d2038049f5
462 changed files with 676 additions and 2308 deletions

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _AOSOUNDSTREAM_H_
#define _AOSOUNDSTREAM_H_
#pragma once
#include "SoundStream.h"
#include "Thread.h"
@ -53,5 +52,3 @@ public:
AOSound(CMixer *mixer) : SoundStream(mixer) {}
#endif
};
#endif //_AOSOUNDSTREAM_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _ALSA_SOUND_STREAM_H
#define _ALSA_SOUND_STREAM_H
#pragma once
#if defined(HAVE_ALSA) && HAVE_ALSA
#include <alsa/asoundlib.h>
@ -52,6 +51,3 @@ public:
AlsaSound(CMixer *mixer) : SoundStream(mixer) {}
#endif
};
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _AUDIO_COMMON_H_
#define _AUDIO_COMMON_H_
#pragma once
#include "Common.h"
#include "SoundStream.h"
@ -47,5 +46,3 @@ namespace AudioCommon
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true);
void UpdateSoundStream();
}
#endif // _AUDIO_COMMON_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _COREAUDIO_SOUND_STREAM_H
#define _COREAUDIO_SOUND_STREAM_H
#pragma once
#ifdef __APPLE__
#include <AudioUnit/AudioUnit.h>
@ -34,7 +33,7 @@ public:
private:
AudioUnit audioUnit;
int m_volume;
int m_volume;
static OSStatus callback(void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
@ -46,5 +45,3 @@ public:
CoreAudioSound(CMixer *mixer) : SoundStream(mixer) {}
#endif
};
#endif

View File

@ -2,10 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _DPL2DECODER_H_
#define _DPL2DECODER_H_
#pragma once
void dpl2decode(float *samples, int numsamples, float *out);
void dpl2reset();
#endif // _DPL2DECODER_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _DSOUNDSTREAM_H_
#define _DSOUNDSTREAM_H_
#pragma once
#include "SoundStream.h"
#include "Thread.h"
@ -76,5 +75,3 @@ public:
{}
#endif
};
#endif //_DSOUNDSTREAM_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _MIXER_H_
#define _MIXER_H_
#pragma once
#include "WaveFile.h"
#include "StdMutex.h"
@ -106,5 +105,3 @@ protected:
private:
};
#endif // _MIXER_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _NULLSOUNDSTREAM_H_
#define _NULLSOUNDSTREAM_H_
#pragma once
#include <stdlib.h>
#include "SoundStream.h"
@ -31,5 +30,3 @@ public:
virtual bool usesMixer() const { return true; }
virtual void Update();
};
#endif //_NULLSOUNDSTREAM_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _OPENALSTREAM_H_
#define _OPENALSTREAM_H_
#pragma once
#include "SoundStream.h"
#include "Thread.h"
@ -79,5 +78,3 @@ public:
{}
#endif // HAVE_OPENAL
};
#endif // OPENALSTREAM

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _OPENSLSTREAM_H_
#define _OPENSLSTREAM_H_
#pragma once
#include "Thread.h"
#include "SoundStream.h"
@ -31,5 +30,3 @@ public:
OpenSLESStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {}
#endif // HAVE_OPENSL
};
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _PULSE_AUDIO_STREAM_H
#define _PULSE_AUDIO_STREAM_H
#pragma once
#if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO
#include <pulse/pulseaudio.h>
@ -61,5 +60,3 @@ public:
PulseAudio(CMixer *mixer) : SoundStream(mixer) {}
#endif
};
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _SOUNDSTREAM_H_
#define _SOUNDSTREAM_H_
#pragma once
#include "Common.h"
#include "Mixer.h"
@ -55,5 +54,3 @@ public:
}
}
};
#endif // _SOUNDSTREAM_H_

View File

@ -12,8 +12,7 @@
// If Stop is not called when it destructs, the destructor will call Stop().
// ---------------------------------------------------------------------------------
#ifndef _WAVEFILE_H_
#define _WAVEFILE_H_
#pragma once
#include "FileUtil.h"
@ -41,5 +40,3 @@ public:
void AddStereoSamplesBE(const short *sample_data, u32 count); // big endian
u32 GetAudioSize() const { return audio_size; }
};
#endif // _WAVEFILE_H_

View File

@ -1,5 +1,4 @@
#ifndef ALDEVICELIST_H
#define ALDEVICELIST_H
#pragma once
#include "CommonTypes.h"
#ifdef _WIN32
@ -47,5 +46,3 @@ public:
private:
u32 GetMaxNumSources();
};
#endif // ALDEVICELIST_H