#ifndef _MONO_METADATA_ENVIRONMENT_H_
#define _MONO_METADATA_ENVIRONMENT_H_
-extern gint32 mono_environment_exitcode_get (void);
-extern void mono_environment_exitcode_set (gint32 value);
+#include <mono/utils/mono-publib.h>
+
+MONO_BEGIN_DECLS
+
+MONO_API extern int32_t mono_environment_exitcode_get (void);
+MONO_API extern void mono_environment_exitcode_set (int32_t value);
+
+MONO_END_DECLS
#endif /* _MONO_METADATA_ENVIRONMENT_H_ */