Skip to content

Commit

Permalink
Fix build by avoiding to include Qt headers in plain c header files, …
Browse files Browse the repository at this point in the history
…making some compilers error out
  • Loading branch information
LocutusOfBorg committed Sep 24, 2024
1 parent bf37e5d commit 524227d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion parser/qdltparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <QFile>

typedef int pid_t;
typedef unsigned int speed_t;

typedef float float32_t;
typedef double float64_t;
Expand Down
2 changes: 2 additions & 0 deletions qdlt/dlt_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

#if !defined (__WIN32__) && !defined(_MSC_VER)
#include <termios.h>
#else
typedef unsigned int speed_t;
#endif

#include "dlt_types.h"
Expand Down
5 changes: 0 additions & 5 deletions qdlt/dlt_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@
typedef int pid_t;
#endif

#ifdef TARGET_OS_MAC
typedef unsigned long speed_t;
#else
typedef unsigned int speed_t;
#endif
typedef float float32_t;
typedef double float64_t;

Expand Down
2 changes: 2 additions & 0 deletions qdlt/export_rules.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#if defined (__WIN32__) || defined(_MSC_VER)
#include <QtGlobal>
#endif

#ifndef EXPORT_RULES_H
#define EXPORT_RULES_H
Expand Down

0 comments on commit 524227d

Please sign in to comment.