summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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