Skip to content

Commit

Permalink
Added define to control weak linking in usertab (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: chria <[email protected]>
  • Loading branch information
chria and chria authored Jan 27, 2023
1 parent 360ef00 commit 53ca4fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include "ModelicaUtilities.h"

#if defined(DUMMY_FUNCTION_USERTAB)
#if (defined(__clang__) || defined(__GNUC__)) && !(defined(__apple_build_version__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__))
#if (defined(__clang__) || defined(__GNUC__)) && !(defined(__apple_build_version__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) || defined(NO_WEAK_LINKING))
int usertab(char* tableName, int nipo, int dim[], int* colWise,
double** table) __attribute__ ((weak, alias ("dummy_usertab")));
#define USERTAB_NAME dummy_usertab
Expand Down

0 comments on commit 53ca4fd

Please sign in to comment.