summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2014-10-29 16:18:11 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2014-10-29 16:18:11 +0200
commitf8931f2f37f79f36d1b8ad8e4d6908e6bdfcaf4f (patch)
treed4554c0c383e5e1cfa0499956641dbffe86d6074 /src
parentc602cee1b51e8c532e4817d41d973deea8ab257a (diff)
downloadffts-f8931f2f37f79f36d1b8ad8e4d6908e6bdfcaf4f.zip
ffts-f8931f2f37f79f36d1b8ad8e4d6908e6bdfcaf4f.tar.gz
MSVC has problems with "complex" type
Diffstat (limited to 'src')
-rw-r--r--src/types.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/types.h b/src/types.h
index a7425c2..749d387 100644
--- a/src/types.h
+++ b/src/types.h
@@ -1,10 +1,10 @@
/*
-
+
This file is part of FFTS -- The Fastest Fourier Transform in the South
-
+
Copyright (c) 2012, Anthony M. Blake <amb@anthonix.com>
- Copyright (c) 2012, The University of Waikato
-
+ Copyright (c) 2012, The University of Waikato
+
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -31,20 +31,19 @@
*/
+#ifndef FFTS_TYPES_H
+#define FFTS_TYPES_H
-#ifndef __TYPES_H__
-#define __TYPES_H__
-
-#define __INLINE static inline __attribute__((always_inline))
-
-#if defined(complex)
- typedef complex float cdata_t;
-#else
- typedef float cdata_t[2];
+#if defined (_MSC_VER) && (_MSC_VER >= 1020)
+#pragma once
#endif
- typedef float data_t;
+#if defined(_Complex_I) && defined(complex) && defined(I)
+typedef complex float cdata_t;
+#else
+typedef float cdata_t[2];
#endif
+typedef float data_t;
-// vim: set autoindent noexpandtab tabstop=3 shiftwidth=3:
+#endif /* FFTS_TYPES_H */
OpenPOWER on IntegriCloud