ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSYS2/mingw32/i686-w64-mingw32/include/sec_api/stralign_s.h
Revision: 1166
Committed: Tue Oct 26 14:22:36 2021 UTC (4 years ago) by rossy
Content type: text/x-chdr
File size: 784 byte(s)
Log Message:
Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File Contents

# Content
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6 #ifndef __STRALIGN_H_S_
7 #define __STRALIGN_H_S_
8
9 #include <stralign.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #if !defined(_X86_) && defined(_WSTRING_S_DEFINED)
16 #if defined(__cplusplus) && defined(_WConst_Return)
17 static __inline PUWSTR ua_wcscpy_s(PUWSTR Destination,size_t DestinationSize,PCUWSTR Source) {
18 if(WSTR_ALIGNED(Source) && WSTR_ALIGNED(Destination)) return (wcscpy_s((PWSTR)Destination,DestinationSize,(PCWSTR)Source)==0 ? Destination : NULL);
19 return uaw_wcscpy((PCUWSTR)String,Character);
20 }
21 #endif
22 #endif
23
24 #ifdef __cplusplus
25 }
26 #endif
27 #endif