fixing windows dll issues

This commit is contained in:
2023-12-08 23:33:26 +01:00
parent 038a6db77f
commit 555af79e9e
43 changed files with 121 additions and 110 deletions

View File

@@ -15,13 +15,9 @@
#ifndef __MACRO_LIB_X_H__
#define __MACRO_LIB_X_H__
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_WIN32) || defined(_WIN64)
#define MLX_EXPORT __declspec(dllexport)
#define MLX_IMPORT __declspec(dllexport)
#define MLX_IMPORT __declspec(dllimport)
#else
#define MLX_EXPORT
#define MLX_IMPORT
@@ -33,6 +29,10 @@ extern "C" {
#define MLX_API MLX_IMPORT
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
MLX_KEYDOWN = 0,