aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpt
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpilib/mpi_type.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpilib/mpi_type.h b/sys/dev/mpt/mpilib/mpi_type.h
index c10cb92bbc8df..2fc483204def5 100644
--- a/sys/dev/mpt/mpilib/mpi_type.h
+++ b/sys/dev/mpt/mpilib/mpi_type.h
@@ -46,6 +46,9 @@
#ifndef MPI_TYPE_H
#define MPI_TYPE_H
+#ifndef _SYS_CDEFS_H_
+#error this file needs sys/cdefs.h as a prerequisite
+#endif
/*******************************************************************************
* Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER
@@ -68,7 +71,8 @@ typedef unsigned char U8;
typedef signed short S16;
typedef unsigned short U16;
-#if defined(unix) || defined(__arm) || defined(ALPHA) || defined(__GNUC__) || defined(__INTEL_COMPILER)
+#if defined(unix) || defined(__arm) || defined(ALPHA) \
+ || defined(__CC_INT_IS_32BIT)
typedef signed int S32;
typedef unsigned int U32;