summaryrefslogtreecommitdiffstats
path: root/c/src/libchip
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-21 08:49:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-21 08:52:29 +0100
commit11925eef789566a226d8eaacbceb4d89df787ebc (patch)
treed9012073fa76528fd205eed96cc016d566f7c89d /c/src/libchip
parentsmpschedaffinity05: Change semaphore attributes. (diff)
downloadrtems-11925eef789566a226d8eaacbceb4d89df787ebc.tar.bz2
Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
Diffstat (limited to 'c/src/libchip')
-rw-r--r--c/src/libchip/ide/ata_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/libchip/ide/ata_internal.h b/c/src/libchip/ide/ata_internal.h
index 94b8890f1d..887199d213 100644
--- a/c/src/libchip/ide/ata_internal.h
+++ b/c/src/libchip/ide/ata_internal.h
@@ -15,6 +15,7 @@
#ifndef __ATA_INTERNAL_H__
#define __ATA_INTERNAL_H__
+#include <sys/param.h>
#include <rtems.h>
#include <sys/types.h>
#include <rtems/libio.h>
@@ -45,7 +46,6 @@ extern "C" {
# define CT_LE_L(v) (v)
#endif
-#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define ATA_UNDEFINED_VALUE (-1)
/* Sector size for all ATA devices */