Last change
on this file since 1178 was 1166, checked in by rossy, 3 years ago |
Daodan: Replace MinGW build env with an up-to-date MSYS2 env
|
File size:
784 bytes
|
Rev | Line | |
---|
[1166] | 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.