1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 07:01:18 +02:00

Revert "Replace header guards with #pragma once"

This reverts commit a6bc896e24.
This commit is contained in:
Emily Mabrey
2021-08-24 16:57:24 -04:00
parent 669254d5a5
commit 40d4883233
415 changed files with 1685 additions and 429 deletions

View File

@@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_IDENTIFIER__
#define __AUDACITY_IDENTIFIER__
#include <vector>
#include <wx/string.h>
@@ -233,3 +234,6 @@ using CommandIDs = std::vector<CommandID>;
struct ManualPageIDTag;
using ManualPageID = TaggedIdentifier< ManualPageIDTag >;
#endif

View File

@@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_INTERNAT__
#define __AUDACITY_INTERNAT__
#include <vector>
#include <wx/longlong.h>
@@ -162,3 +163,5 @@ private:
// If not, then the program builds and runs, but strings in the catalog with
// contexts will fail to translate
#define HAS_I18N_CONTEXTS wxCHECK_VERSION(3, 1, 1)
#endif

View File

@@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LANGUAGES__
#define __AUDACITY_LANGUAGES__
class wxArrayString;
class wxString;
@@ -55,3 +56,5 @@ STRINGS_API
wxString GetLocaleName();
}
#endif // __AUDACITY_LANGUAGES__

View File

@@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_TRANSLATABLE_STRING__
#define __AUDACITY_TRANSLATABLE_STRING__
#include <stddef.h> // for size_t
#include <functional>
@@ -319,3 +320,5 @@ inline Sink &operator <<( Sink &sink, const TranslatableString &str )
review the uses of this function, separately from the uses of the type. */
inline TranslatableString Verbatim( wxString str )
{ return TranslatableString( std::move( str ) ); }
#endif

View File

@@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_WX_ARRAY_STRING_EX__
#define __AUDACITY_WX_ARRAY_STRING_EX__
#include <wx/arrstr.h>
@@ -68,3 +69,5 @@ public:
return result;
}
};
#endif

View File

@@ -1,4 +1,5 @@
#pragma once
#ifndef __AUDACITY_MEMORY_X_H__
#define __AUDACITY_MEMORY_X_H__
// C++ standard header <memory> with a few extensions
#include <iterator>
@@ -633,3 +634,5 @@ template< typename T > struct NonInterfering
#define LINEAR_TO_DB(x) (20.0 * log10(x))
#define MAX_AUDIO (1. - 1./(1<<15))
#endif // __AUDACITY_MEMORY_X_H__

View File

@@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MODULE_CONSTANTS__
#define __AUDACITY_MODULE_CONSTANTS__
#define ModuleDispatchName "ModuleDispatch"
@@ -51,3 +52,5 @@ extern "C" { \
#define DEFINE_MODULE_ENTRIES \
DEFINE_VERSION_CHECK \
extern "C" DLL_API int ModuleDispatch(ModuleDispatchTypes type){ return 1; }
#endif