mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Mingw fixes.
This commit is contained in:
parent
3c345997f5
commit
7d014acb6c
2 changed files with 6 additions and 3 deletions
|
|
@ -46,7 +46,7 @@
|
|||
#if JUCE_MSVC
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable: 4996)
|
||||
#else
|
||||
#elif ! JUCE_MINGW
|
||||
#define __cdecl
|
||||
#endif
|
||||
|
||||
|
|
@ -66,7 +66,10 @@
|
|||
//==============================================================================
|
||||
#include "juce_VSTMidiEventList.h"
|
||||
|
||||
#if ! JUCE_WINDOWS
|
||||
#if JUCE_MINGW
|
||||
extern "C" void _fpreset();
|
||||
extern "C" void _clearfp();
|
||||
#elif ! JUCE_WINDOWS
|
||||
static void _fpreset() {}
|
||||
static void _clearfp() {}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ namespace NumberToStringConverters
|
|||
else
|
||||
{
|
||||
// Use a locale-free sprintf where possible (not available on linux AFAICT)
|
||||
#if JUCE_WINDOWS
|
||||
#if JUCE_MSVC
|
||||
len = (size_t) _sprintf_l (buffer, "%.9g", _create_locale (LC_NUMERIC, "C"), n);
|
||||
#elif JUCE_MAC || JUCE_IOS
|
||||
len = (size_t) sprintf_l (buffer, nullptr, "%.9g", n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue