diff --git a/c_src/driver_comm.h b/c_src/driver_comm.h index 9f04d16..0b3bd97 100644 --- a/c_src/driver_comm.h +++ b/c_src/driver_comm.h @@ -13,8 +13,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -#include "erl_compatibility.h" - #ifndef __DRIVER_COMM__ #define __DRIVER_COMM__ diff --git a/c_src/erl_compatibility.h b/c_src/erl_compatibility.h deleted file mode 100644 index 14a499d..0000000 --- a/c_src/erl_compatibility.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - Copyright (c) 2012 Basho Technologies, Inc. - - This file is provided to you under the Apache License, - Version 2.0 (the "License"); you may not use this file - except in compliance with the License. You may obtain - a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -*/ - -#ifndef __ERL_COMPATIBILITY_H__ -#define __ERL_COMPATIBILITY_H__ - -/* For compatibility with OTP releases prior to R15. - R15 and greater uses ErlDrvSizeT as an unsigned size - like size_t for driver_* calls -*/ -#if ERL_DRV_EXTENDED_MAJOR_VERSION < 2 -#define ErlDrvSizeT size_t -#define ErlDrvSSizeT ssize_t -#endif - - -#endif /* __ERL_COMPATIBILITY_H__ */ diff --git a/c_src/spidermonkey.c b/c_src/spidermonkey.c index 623c109..02d52bd 100644 --- a/c_src/spidermonkey.c +++ b/c_src/spidermonkey.c @@ -21,7 +21,6 @@ #include "driver_comm.h" #include "spidermonkey.h" -#include "erl_compatibility.h" void free_error(spidermonkey_state *state); diff --git a/c_src/spidermonkey_drv.c b/c_src/spidermonkey_drv.c index 5e09dba..4106d39 100644 --- a/c_src/spidermonkey_drv.c +++ b/c_src/spidermonkey_drv.c @@ -21,7 +21,6 @@ #include "spidermonkey.h" #include "config.h" #include "driver_comm.h" -#include "erl_compatibility.h" typedef struct _spidermonkey_drv_t { ErlDrvPort port;