newer version of tcc almost working
This commit is contained in:
parent
c42c5d94b8
commit
826d1afd58
442 changed files with 90400 additions and 24506 deletions
30
05/tcc-0.9.27/win32/include/sec_api/stralign_s.h
Normal file
30
05/tcc-0.9.27/win32/include/sec_api/stralign_s.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef __STRALIGN_H_S_
|
||||
#define __STRALIGN_H_S_
|
||||
|
||||
#include <stralign.h>
|
||||
|
||||
#if defined(MINGW_HAS_SECURE_API)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined(I_X86_) && defined(_WSTRING_S_DEFINED)
|
||||
#if defined(__cplusplus) && defined(_WConst_Return)
|
||||
static __inline PUWSTR ua_wcscpy_s(PUWSTR Destination,size_t DestinationSize,PCUWSTR Source) {
|
||||
if(WSTR_ALIGNED(Source) && WSTR_ALIGNED(Destination)) return (wcscpy_s((PWSTR)Destination,DestinationSize,(PCWSTR)Source)==0 ? Destination : NULL);
|
||||
return uaw_wcscpy((PCUWSTR)String,Character);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue