Skip to content

Fixed linux gcc compilation errors#11

Open
AbduEhab wants to merge 2 commits intoLimeoats:masterfrom
AbduEhab:master
Open

Fixed linux gcc compilation errors#11
AbduEhab wants to merge 2 commits intoLimeoats:masterfrom
AbduEhab:master

Conversation

@AbduEhab
Copy link
Contributor

@AbduEhab AbduEhab commented Feb 2, 2025

No description provided.

The copy function was not well documented. After some testing, it turns out that the original code was correct.
@Limeoats
Copy link
Owner

Limeoats commented Jun 14, 2025

I'd prefer to see an #ifdef at the top and define the different platform calls once up there, rather than surrounding each call with the check.

Something more like this:

#ifdef _WIN32
  #define STRCOPY(dest, size, src) strcpy_s(dest, size, src)
#else
  #define STRCOPY(dest, size, src) strcpy(dest, src)
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments