L2DFileDialog icon indicating copy to clipboard operation
L2DFileDialog copied to clipboard

Fixed linux gcc compilation errors

Open AbduEhab opened this issue 11 months ago • 1 comments

AbduEhab avatar Feb 02 '25 19:02 AbduEhab

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

Limeoats avatar Jun 14 '25 16:06 Limeoats