taisei/src/tscomplex.h
Andrei "Akari" Alexeyev 8566c65f4b Fixed clang warnings
2017-02-07 20:34:55 +02:00

22 lines
581 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef TSCOMPLEX_H
#define TSCOMPLEX_H
#include <complex.h>
// This is a workaround to properly specify the type of our "complex" variables...
// Taisei code always uses just "complex" when it actually means "complex double", which is not really correct...
// gcc doesn't seem to care, other compilers do (e.g. clang)
#ifdef complex
#undef complex
#define complex _Complex double
#endif
#endif