1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Move Mac-only implementation details out of header file

This commit is contained in:
Paul Licameli 2019-03-30 11:03:10 -04:00
parent 870c08ac06
commit 1191e269a8
2 changed files with 11 additions and 15 deletions

View File

@ -260,6 +260,16 @@ wxString sf_normalize_name(const char *name)
#define NUM_HEADERS 13
//
// Mac OS 4-char type
//
# ifdef __UNIX__
# include <CoreServices/CoreServices.h>
# else
# include <Types.h>
# endif
OSType MacNames[NUM_HEADERS] = {
'WAVE', // WAVE
'AIFF', // AIFF
@ -276,7 +286,7 @@ OSType MacNames[NUM_HEADERS] = {
'MAT5', // ?? Matlab 5
};
OSType sf_header_mactype(int format)
static OSType sf_header_mactype(int format)
{
if (format >= 0x10000)
return MacNames[(format/0x10000)-1];

View File

@ -101,20 +101,6 @@ extern FileExtensions sf_get_all_extensions();
wxString sf_normalize_name(const char *name);
//
// Mac OS 4-char type
//
#ifdef __WXMAC__
# ifdef __UNIX__
# include <CoreServices/CoreServices.h>
# else
# include <Types.h>
# endif
OSType sf_header_mactype(int format);
#endif
// This function wrapper uses a mutex to serialize calls to the SndFile library.
#include "MemoryX.h"
#include "ondemand/ODTaskThread.h"