aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_driver.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-01-03 17:21:24 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-01-03 17:21:24 +0100
commitdee544bb02343ddde2b7be79dfe1d11b602b3a80 (patch)
tree022799e0349ce6d77b34425910641dc0c646ee1b /erts/emulator/beam/erl_driver.h
parent60093b2b3ba472a603f14db38a0c8f2c9db1cdde (diff)
downloadotp-dee544bb02343ddde2b7be79dfe1d11b602b3a80.tar.gz
otp-dee544bb02343ddde2b7be79dfe1d11b602b3a80.tar.bz2
otp-dee544bb02343ddde2b7be79dfe1d11b602b3a80.zip
erts: Add missing prototype to DRIVER_INIT
* The DRIVER_INIT macro will now produce an prototype for the driver_init() function in addition to previous behaviour.
Diffstat (limited to 'erts/emulator/beam/erl_driver.h')
-rw-r--r--erts/emulator/beam/erl_driver.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_driver.h b/erts/emulator/beam/erl_driver.h
index e80eae0b86..7510f6b724 100644
--- a/erts/emulator/beam/erl_driver.h
+++ b/erts/emulator/beam/erl_driver.h
@@ -371,11 +371,17 @@ typedef struct erl_drv_entry {
#ifndef ERL_DRIVER_TYPES_ONLY
#if defined(VXWORKS)
-# define DRIVER_INIT(DRIVER_NAME) ErlDrvEntry* DRIVER_NAME ## _init(void)
+# define DRIVER_INIT(DRIVER_NAME) \
+ ErlDrvEntry* DRIVER_NAME ## _init(void); \
+ ErlDrvEntry* DRIVER_NAME ## _init(void)
#elif defined(__WIN32__)
-# define DRIVER_INIT(DRIVER_NAME) __declspec(dllexport) ErlDrvEntry* driver_init(void)
+# define DRIVER_INIT(DRIVER_NAME) \
+ __declspec(dllexport) ErlDrvEntry* driver_init(void); \
+ __declspec(dllexport) ErlDrvEntry* driver_init(void)
#else
-# define DRIVER_INIT(DRIVER_NAME) ErlDrvEntry* driver_init(void)
+# define DRIVER_INIT(DRIVER_NAME) \
+ ErlDrvEntry* driver_init(void); \
+ ErlDrvEntry* driver_init(void)
#endif
/*