removing GCC error

This commit is contained in:
2023-12-16 20:20:51 +01:00
parent 72cc2eb9ab
commit 6f0f944fbe
2 changed files with 3 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/10 08:49:17 by maldavid #+# #+# */
/* Updated: 2023/12/16 20:11:18 by maldavid ### ########.fr */
/* Updated: 2023/12/16 20:20:35 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -75,12 +75,6 @@
#define MLX_API
#endif
#if defined(MLX_COMPILER_GCC) && !defined(MLX_PLAT_WINDOWS)
#define MLX_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
#else
#define MLX_VISIBILITY_HIDDEN
#endif
#if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
#define MLX_FUNC_SIG __PRETTY_FUNCTION__
#elif defined(__DMC__) && (__DMC__ >= 0x810)

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:35:20 by maldavid #+# #+# */
/* Updated: 2023/12/16 20:17:23 by maldavid ### ########.fr */
/* Updated: 2023/12/16 20:20:41 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,7 +19,7 @@
#include <core/memory.h>
#include <mlx_profile.h>
static void* __mlx_ptr MLX_VISIBILITY_HIDDEN = nullptr;
static void* __mlx_ptr = nullptr;
#define MLX_CHECK_APPLICATION_POINTER(ptr) \
if(ptr != __mlx_ptr || ptr == NULL) \