We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Nicolas Visual Studio 2022 will highlight the following error with texture-font.c.
Should this be changed?
Thank you.
Error C4996 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup.
// --------------------------------------------- texture_font_new_from_file --- texture_font_t * texture_font_new_from_file(texture_atlas_t *atlas, const float pt_size, const char *filename) { texture_font_t *self; assert(filename); self = calloc(1, sizeof(*self)); if (!self) { freetype_gl_error( Out_Of_Memory ); return NULL; } self->atlas = atlas; self->size = pt_size; self->location = TEXTURE_FONT_FILE; self->filename = strdup(filename); <<----- HERE self->mode = mode_default; if (texture_font_init(self)) { texture_font_delete(self); return NULL; } return self; }
The text was updated successfully, but these errors were encountered:
Not quite sure actually. Is is specific to VSCode ? Is there a macro to test for deprecation ? Else, I'm afraid this could fail on other platforms.
Sorry, something went wrong.
No branches or pull requests
Hi Nicolas
Visual Studio 2022 will highlight the following error with texture-font.c.
Should this be changed?
Thank you.
Error C4996 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup.
The text was updated successfully, but these errors were encountered: