Skip to content

Commit

Permalink
simplify the definition of speed_t across all the different OSes (MAC…
Browse files Browse the repository at this point in the history
…/WIN/LINUX)
  • Loading branch information
Gianfranco Costamagna committed Dec 12, 2024
1 parent 1f783ad commit fb38e22
Show file tree
Hide file tree
Showing 3 changed files with 2 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 __APPLE__
typedef unsigned long speed_t;
#else
typedef unsigned int speed_t;
#endif
typedef float float32_t;
typedef double float64_t;

Expand Down

0 comments on commit fb38e22

Please sign in to comment.