Skip to content

Commit

Permalink
ENH: Add IMPORT macro for windows support in R283.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 25, 2023
1 parent a3a5556 commit 0c0c93b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions include/iapws_r283.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
#ifndef IAPWS_R283_H
#define IAPWS_R283_H

extern const double iapws_r283_capi_Tc_H2O;
extern const double iapws_r283_capi_Tc_D2O;
#if _MSC_VER
#define ADD_IMPORT __declspec(dllimport)
#else
#define ADD_IMPORT
#endif

ADD_IMPORT const double iapws_r283_capi_Tc_H2O;
ADD_IMPORT const double iapws_r283_capi_Tc_D2O;

extern const double iapws_r283_capi_pc_H2O;
extern const double iapws_r283_capi_pc_D2O;
ADD_IMPORT const double iapws_r283_capi_pc_H2O;
ADD_IMPORT const double iapws_r283_capi_pc_D2O;

extern const double iapws_r283_capi_rhoc_H2O;
extern const double iapws_r283_capi_rhoc_D2O;
ADD_IMPORT const double iapws_r283_capi_rhoc_H2O;
ADD_IMPORT const double iapws_r283_capi_rhoc_D2O;

#endif

0 comments on commit 0c0c93b

Please sign in to comment.