Skip to content

Commit

Permalink
removing GCC error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 committed Dec 16, 2023
1 parent 1922b40 commit 0b4b32b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions includes/mlx_profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/core/bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* */
/* ************************************************************************** */

Expand All @@ -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) \
Expand Down

0 comments on commit 0b4b32b

Please sign in to comment.