magicOA.c: strcpy_s declaration (FIXME remove/move this)

This commit is contained in:
Darryl L. Miles 2024-10-04 20:28:13 +00:00
parent 9f4c5499c4
commit c332a86a95
1 changed files with 13 additions and 0 deletions

View File

@ -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