aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_driver.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-01-08 16:41:21 +0100
committerSverker Eriksson <[email protected]>2016-01-08 16:45:37 +0100
commit52fc89120c2f2237ec5191e72d844a6dca150040 (patch)
treeaaada84c38d57bee98adbc3330249950be28f0d0 /erts/emulator/beam/erl_driver.h
parentb18d251931a43099cc18527bcf6898fff1b144f5 (diff)
downloadotp-52fc89120c2f2237ec5191e72d844a6dca150040.tar.gz
otp-52fc89120c2f2237ec5191e72d844a6dca150040.tar.bz2
otp-52fc89120c2f2237ec5191e72d844a6dca150040.zip
erts: Cleanup erl_driver.h for windows
The comment is misleading and no need to "export" static windows drivers. DRIVER_INIT for dynamic windows drivers is defined in erl_win_dyn_driver.h
Diffstat (limited to 'erts/emulator/beam/erl_driver.h')
-rw-r--r--erts/emulator/beam/erl_driver.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_driver.h b/erts/emulator/beam/erl_driver.h
index bda4d5d1c6..268bda8b58 100644
--- a/erts/emulator/beam/erl_driver.h
+++ b/erts/emulator/beam/erl_driver.h
@@ -382,18 +382,11 @@ typedef struct erl_drv_entry {
# define ERLANG_DRIVER_NAME(NAME) driver_init
#endif
-/* For windows dynamic drivers */
#ifndef ERL_DRIVER_TYPES_ONLY
-#if defined(__WIN32__)
-# define DRIVER_INIT(DRIVER_NAME) \
- __declspec(dllexport) ErlDrvEntry* ERLANG_DRIVER_NAME(DRIVER_NAME)(void); \
- __declspec(dllexport) ErlDrvEntry* ERLANG_DRIVER_NAME(DRIVER_NAME)(void)
-#else
# define DRIVER_INIT(DRIVER_NAME) \
ErlDrvEntry* ERLANG_DRIVER_NAME(DRIVER_NAME)(void); \
ErlDrvEntry* ERLANG_DRIVER_NAME(DRIVER_NAME)(void)
-#endif
#define ERL_DRV_BUSY_MSGQ_DISABLED (~((ErlDrvSizeT) 0))
#define ERL_DRV_BUSY_MSGQ_READ_ONLY ((ErlDrvSizeT) 0)