Skip to content

Commit

Permalink
Revert "Added LM_STATIC preprocessor flag when doing a static build (#…
Browse files Browse the repository at this point in the history
…243)"

This reverts commit ca421f7.
  • Loading branch information
rdbo committed Dec 10, 2024
1 parent 2aac816 commit 449eb61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ set(LIBMEM_DEPS

if (LIBMEM_BUILD_STATIC)
add_library(libmem STATIC ${LIBMEM_SRC})
target_compile_definitions(libmem PUBLIC LM_STATIC)
else()
add_library(libmem SHARED ${LIBMEM_SRC})
endif()
Expand Down
10 changes: 3 additions & 7 deletions include/libmem/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@
#endif

/* Resolve import/export */
#ifdef LM_STATIC
# define LM_API
#ifdef LM_EXPORT
# define LM_API LM_API_EXPORT
#else
# ifdef LM_EXPORT
# define LM_API LM_API_EXPORT
# else
# define LM_API LM_API_IMPORT
# endif
# define LM_API LM_API_IMPORT
#endif

/* Calling convention */
Expand Down

0 comments on commit 449eb61

Please sign in to comment.