X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..527f99514973766e9c0382a4d8550dfb00f54939:/osfmk/mach/ndr.h diff --git a/osfmk/mach/ndr.h b/osfmk/mach/ndr.h index 5c6aa2797..9baa731fe 100644 --- a/osfmk/mach/ndr.h +++ b/osfmk/mach/ndr.h @@ -34,6 +34,8 @@ #include #include +#include + typedef struct { unsigned char mig_vers; @@ -65,12 +67,14 @@ typedef struct { extern NDR_record_t NDR_record; -#ifndef __NDR_convert__ -#define __NDR_convert__ 1 -#endif /* __NDR_convert__ */ +/* NDR conversion off by default */ + +#if !defined(__NDR_convert__) +#define __NDR_convert__ 0 +#endif /* !defined(__NDR_convert__) */ #ifndef __NDR_convert__int_rep__ -#define __NDR_convert__int_rep__ 1 +#define __NDR_convert__int_rep__ __NDR_convert__ #endif /* __NDR_convert__int_rep__ */ #ifndef __NDR_convert__char_rep__ @@ -97,8 +101,6 @@ extern NDR_record_t NDR_record; #if __NDR_convert__int_rep__ -#include - #define __NDR_READSWAP_assign(a, rs) do { *(a) = rs(a); } while (0) #define __NDR_READSWAP__uint16_t(a) OSReadSwapInt16((void *)a, 0)