summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/internal.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 15:35:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 15:35:23 (GMT)
commit9e0633c91090e3254056b33bf8bd1ec4533982a6 (patch)
treef680ede529eb7bb1c7739884038499e4b6229356 /Utilities/cmtar/internal.h
parentbc447c7f92730303c16d34cbe3747854b4c776c3 (diff)
downloadCMake-9e0633c91090e3254056b33bf8bd1ec4533982a6.zip
CMake-9e0633c91090e3254056b33bf8bd1ec4533982a6.tar.gz
CMake-9e0633c91090e3254056b33bf8bd1ec4533982a6.tar.bz2
BUG: Several Borland fixes
Diffstat (limited to 'Utilities/cmtar/internal.h')
-rw-r--r--Utilities/cmtar/internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmtar/internal.h b/Utilities/cmtar/internal.h
index cc2cbd3..60be2af 100644
--- a/Utilities/cmtar/internal.h
+++ b/Utilities/cmtar/internal.h
@@ -14,3 +14,10 @@
#include <libtar/compat.h>
#include <libtar/libtar.h>
+
+#ifndef major
+# define major(dev) ((int)(((dev) >> 8) & 0xff))
+#endif
+#ifndef minor
+# define minor(dev) ((int)((dev) & 0xff))
+#endif