mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-06 17:09:40 +02:00
magicOA.c: strcpy_s declaration (FIXME remove/move this)
This commit is contained in:
committed by
R. Timothy Edwards
parent
dfa28d1cd3
commit
f3f824a6bb
@@ -1,7 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <string.h>
|
||||
#include <magicOA.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __restrict /*restrict*/
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define __restrict restrict
|
||||
#define EXTERN_C extern
|
||||
#endif
|
||||
#ifndef rsize_t
|
||||
#define rsize_t size_t
|
||||
#endif
|
||||
EXTERN_C /*errno_t*/ int strcpy_s(char *__restrict dest, rsize_t destsz, const char *__restrict src); // FIXME glibc does not include
|
||||
|
||||
using namespace std;
|
||||
|
||||
// current open cell view
|
||||
|
||||
Reference in New Issue
Block a user