Skip to content

Commit 1ab8a2a

Browse files
workaround qucs_typedefs.h
this file has unsafe timestamps. use config.h instead. (don't know what else this is used for (cmake?))
1 parent a26cb4d commit 1ab8a2a

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

qucs_typedefs.h.in

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// BUG: use config.h
2+
// this file is not timestamp-safe
13

24
#ifndef nr_double_t
35
/* The global type of double representation. */

src/eqnsys.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
*
2323
*/
2424

25-
// the types required for qucs library files are defined
26-
// in qucs_typedefs.h, created by configure from
27-
// qucs_typedefs.h.in
25+
#ifdef HAVE_CONFIG_H
26+
#include "config.h"
27+
#else
28+
// BUG
2829
#include "qucs_typedefs.h"
30+
#endif
2931

3032
#include <assert.h>
3133
#include <time.h>

src/nasolver.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
*
2323
*/
2424

25-
// the types required for qucs library files are defined
26-
// in qucs_typedefs.h, created by configure from
27-
// qucs_typedefs.h.in
25+
#ifdef HAVE_CONFIG_H
26+
#include "config.h"
27+
#else
28+
// BUG
2829
#include "qucs_typedefs.h"
30+
#endif
2931

3032
#include <stdio.h>
3133
#include <stdlib.h>

src/nasolver.h

+5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
#ifndef __NASOLVER_H__
2626
#define __NASOLVER_H__
2727

28+
#ifdef HAVE_CONFIG_H
29+
#include "config.h"
30+
#else
31+
// BUG
2832
#include "qucs_typedefs.h"
33+
#endif
2934
#include "tvector.h"
3035
#include "tmatrix.h"
3136
#include "eqnsys.h"

src/tmatrix.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
*
2323
*/
2424

25+
#ifdef HAVE_CONFIG_H
26+
#include "config.h"
27+
#else
28+
// BUG
2529
#include "qucs_typedefs.h"
30+
#endif
2631

2732
#include <assert.h>
2833
#include <stdio.h>

0 commit comments

Comments
 (0)