]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_endian.h
xnu-517.7.7.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_endian.h
index f20851d99ac919611e64c33cb343e98ff830034e..06801dc693bdfabfaf8f88163cd88a98b40de9a2 100644 (file)
 #ifndef __HFS_ENDIAN_H__
 #define __HFS_ENDIAN_H__
 
+#include <sys/appleapiopts.h>
+
+#ifdef KERNEL
+#ifdef __APPLE_API_PRIVATE
 /*
  * hfs_endian.h
  *
@@ -44,7 +48,7 @@
     
     /* HFS is always big endian, no swapping needed */
     #define SWAP_HFS_PLUS_FORK_DATA(__a)
-    #define SWAP_BT_NODE(__a, __b, __c)
+    #define SWAP_BT_NODE(__a, __b, __c, __d)
 
 /************************/
 /* LITTLE ENDIAN Macros */
@@ -75,4 +79,6 @@ int  hfs_swap_BTNode (BlockDescriptor *src, int isHFSPlus, HFSCatalogNodeID file
 }
 #endif
 
+#endif /* __APPLE_API_PRIVATE */
+#endif /* KERNEL */
 #endif /* __HFS_FORMAT__ */