aboutsummaryrefslogtreecommitdiffstats
path: root/src/porting.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-11 15:25:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-11 15:25:05 +0100
commitb2c5c74b7954279e8cc15790e168a1d4283b4e63 (patch)
tree94ad220d0362c25a42113e3e7e618b45e82056f0 /src/porting.h
parentfa003e1facb2ec5d45a28f27a0e293701c673ec6 (diff)
downloaddabmod-b2c5c74b7954279e8cc15790e168a1d4283b4e63.tar.gz
dabmod-b2c5c74b7954279e8cc15790e168a1d4283b4e63.tar.bz2
dabmod-b2c5c74b7954279e8cc15790e168a1d4283b4e63.zip
Simplify porting.{h,c}
Diffstat (limited to 'src/porting.h')
-rw-r--r--src/porting.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/porting.h b/src/porting.h
index 2ac9b90..1799ba7 100644
--- a/src/porting.h
+++ b/src/porting.h
@@ -19,25 +19,12 @@
along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef PORTING_H
-#define PORTING_H
+#pragma once
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
-#ifndef HAVE_BZERO
-# define bzero(s, n) memset(s, 0, n)
-#endif
-
-#ifndef HAVE_GETTIMEOFDAY
-#include <sys/time.h>
-#ifdef __cplusplus
-extern "C"
-#endif
-int gettimeofday(struct timeval* t, void* timezone);
-#endif
-
#ifdef _WIN32
#include <fcntl.h>
// For setting default opening mode with fopen as binary, for all files
@@ -45,8 +32,3 @@ int gettimeofday(struct timeval* t, void* timezone);
extern unsigned int _CRT_fmode;
#endif
-#ifndef HAVE_KILL
-# define kill(a, b) raise(b)
-#endif
-
-#endif // PORTING_H