summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/synaescope/syna.h
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2022-01-05 16:36:10 +0900
committerOBATA Akio <obache@wizdas.com>2022-01-05 16:36:10 +0900
commitecd978360d79ba71df598f372be65cc1c0e34d80 (patch)
treeb8065873a3fc01b7115df7207de638589d304145 /noatun-plugins/synaescope/syna.h
parent762bfec2c849854fc0247acf8d2f107c27b17940 (diff)
downloadtdeaddons-ecd978360d79ba71df598f372be65cc1c0e34d80.tar.gz
tdeaddons-ecd978360d79ba71df598f372be65cc1c0e34d80.zip
noatun-plugins: change to use SDL feature to handle data for SDL
With own imcompleted endianness checkes, systems might be mis-detected as big endian. Change to use SDL macros to determine endianness. Change to use SDL function to byte swap Change to use SDL tyepdef for appropriate size integer type Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'noatun-plugins/synaescope/syna.h')
-rw-r--r--noatun-plugins/synaescope/syna.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/noatun-plugins/synaescope/syna.h b/noatun-plugins/synaescope/syna.h
index 07c4e5e..0d3831b 100644
--- a/noatun-plugins/synaescope/syna.h
+++ b/noatun-plugins/synaescope/syna.h
@@ -48,31 +48,7 @@
#define NumSamples (1<<LogSize)
#define RecSize (1<<LogSize-Overlap)
-#ifndef __linux__
-#warning This target has not been tested!
-#endif
-
-#ifdef __FreeBSD__
-#include <machine/endian.h>
typedef unsigned short sampleType;
-#else
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#ifdef HAVE_ENDIAN_H
-#include <endian.h>
-#elif defined(_BIG_ENDIAN)
-#define BIG_ENDIAN 1
-#define BYTE_ORDER BIG_ENDIAN
-#endif
-typedef short sampleType;
-#endif
-
-#if BYTE_ORDER == BIG_ENDIAN
-#define BIGENDIAN
-#else
-#define LITTLEENDIAN
-#endif
void error(const char *str, bool syscall=false);
void warning(const char *str, bool syscall=false);