1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00
audacity/src/PlatformCompatibility.h
Leon Marz 80dc2cb7d6 Replace AUDACITY_DLL_API with TENACITY_DLL_API
Signed-off-by: Leon Marz <main@lmarz.org>
2021-08-21 13:23:21 +02:00

45 lines
1.3 KiB
C++

/**********************************************************************
Tenacity
PlatformCompatibility.h
Platform-specific compatibility functions
This file implements functions needed to work around
platform-specific problems and which cannot be solved by a simple
#ifdef/#endif plus two or three lines additional code. Wherever
possible, the implementation should be such, that the function is
implemented on every platform, but is a dummy for those platforms
on which it is not needed, so additional #ifdef's are unnecessary.
Markus Meyer
**********************************************************************/
#ifndef __AUDACITY_COMPATIBILITY__
#define __AUDACITY_COMPATIBILITY__
#include "Identifier.h"
class TENACITY_DLL_API PlatformCompatibility
{
public:
//
// On Win32, this function gets the long file name (like
// "C:\Program Files\Project.aup3") from a short file name like
// "C:\PROGRA~1\PROJEC~1.AUP. On other systems, the function
// just returns the exact string it is given.
//
static FilePath GetLongFileName(const FilePath& shortFileName);
//
// Get filename and path of executable (e.g. "/usr/bin/tenacity" on
// Linux or "C:\Program Files\Tenacity\Tenacity.exe" on Windows)
// This string is unchanging
//
static const FilePath &GetExecutablePath();
};
#endif