summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-06-23 22:34:36 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-24 14:44:06 +0200
commitec6a45f8112080fc6dd74f8d796d3d26c54aaddc (patch)
tree8f9df79667542a33175e50d5180c763ef1594f28
parent3818cb845053d4fc3bd84a2ddf35286a4fa39f86 (diff)
downloadmxs-utils-ec6a45f8112080fc6dd74f8d796d3d26c54aaddc.tar.gz
mxs-utils-ec6a45f8112080fc6dd74f8d796d3d26c54aaddc.tar.xz
there is stdafx.h and common/stdafx.h, remove one
common/stdafx.h has some stuff that fixes building on Linux Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--stdafx.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/stdafx.h b/stdafx.h
deleted file mode 100644
index ce80458..0000000
--- a/stdafx.h
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef stdafx_h_
-#define stdafx_h_
-
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-// Default to external release.
-#ifndef SGTL_INTERNAL
- #define SGTL_INTERNAL 0
-#endif
-
-#include <iostream>
-#include <stdexcept>
-
-#if defined(WIN32)
-//#include <tchar.h>
-
- // define this macro for use in VC++
- #if !defined(__LITTLE_ENDIAN__)
- #define __LITTLE_ENDIAN__ 1
- #endif // !defined(__LITTLE_ENDIAN__)
-#endif // defined(WIN32)
-
-#if defined(Linux)
-// For Linux systems only, types.h only defines the signed
-// integer types. This is not professional code.
-// Update: They are defined in the header files in the more recent version of redhat enterprise gcc.
-#include "/usr/include/sys/types.h"
-//typedef unsigned long uint32_t;
-//typedef unsigned short uint16_t;
-//typedef unsigned char uint8_t;
-
-//#define TCHAR char
-//#define _tmain main
-
- // give a default endian in case one is not defined on Linux (it should be, though)
- #if !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
- #define __LITTLE_ENDIAN__ 1
- #endif // !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
-
-#endif // defined(Linux)
-
-
-#if !defined(Linux)
-// redefine missing typedefs from stdint.h or syst/types.h
-
-typedef unsigned long uint32_t;
-typedef unsigned short uint16_t;
-typedef unsigned char uint8_t;
-
-typedef long int32_t;
-typedef short int16_t;
-typedef char int8_t;
-#endif // !defined(Linux)
-
-#if !defined(TRUE)
- #define TRUE 1
-#endif // !defined(TRUE)
-
-#if !defined(FALSE)
- #define FALSE 0
-#endif // !defined(FALSE)
-
-#endif // stdafx_h_