summaryrefslogtreecommitdiff
path: root/busybox.h
diff options
context:
space:
mode:
authorMark Whitley2001-03-07 18:00:44 +0000
committerMark Whitley2001-03-07 18:00:44 +0000
commit4cc8f31ffea183ce10111e543f3d50a702c31760 (patch)
tree202827a2b726079dee522be71d8653f7b3b90a38 /busybox.h
parentae5612ca6e74ba251cd10fc853dcf9694c0fecf1 (diff)
downloadbusybox-4cc8f31ffea183ce10111e543f3d50a702c31760.zip
busybox-4cc8f31ffea183ce10111e543f3d50a702c31760.tar.gz
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
Diffstat (limited to 'busybox.h')
-rw-r--r--busybox.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/busybox.h b/busybox.h
index 573cce1..5e46ebb 100644
--- a/busybox.h
+++ b/busybox.h
@@ -235,9 +235,11 @@ extern int sysinfo (struct sysinfo* info);
#ifdef BB_FEATURE_HUMAN_READABLE
const char *make_human_readable_str(unsigned long val, unsigned long hr);
#endif
-#define KILOBYTE 1024
-#define MEGABYTE (KILOBYTE*1024)
-#define GIGABYTE (MEGABYTE*1024)
+enum {
+ KILOBYTE = 1024,
+ MEGABYTE = (KILOBYTE*1024),
+ GIGABYTE = (MEGABYTE*1024)
+};
#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]