mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-09 16:15:45 +00:00
real mingw fix
This commit is contained in:
parent
674e37de23
commit
38a4c0d4fd
@ -47,18 +47,16 @@
|
|||||||
#include "SnarlInterface.h"
|
#include "SnarlInterface.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Snarl {
|
|
||||||
namespace V41 {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// workaround for mingw-w64 bug
|
// workaround for mingw-w64 bug
|
||||||
#ifdef __GNUC__
|
#ifdef __MINGW64_VERSION_MAJOR
|
||||||
inline errno_t strncat_s( char *strDest, size_t bufferSizeInBytes, const char *strSource, size_t count){
|
extern "C" {
|
||||||
strncat(strDest,strSource,count);
|
__declspec(dllimport) errno_t __cdecl strncat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
||||||
return 0;
|
}
|
||||||
}
|
#endif //__MINGW64_VERSION_MAJOR
|
||||||
#endif //__GNUC__
|
|
||||||
|
namespace Snarl {
|
||||||
|
namespace V41 {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Constructor/Destructor
|
// Constructor/Destructor
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
#ifndef SNARL_INTERFACE_V41
|
#ifndef SNARL_INTERFACE_V41
|
||||||
#define SNARL_INTERFACE_V41
|
#define SNARL_INTERFACE_V41
|
||||||
|
|
||||||
#define MINGW_HAS_SECURE_API
|
#ifdef __MINGW32__
|
||||||
|
#define MINGW_HAS_SECURE_API
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <tchar.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
#ifndef SMTO_NOTIMEOUTIFNOTHUNG
|
#ifndef SMTO_NOTIMEOUTIFNOTHUNG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user