Use common error definitions.
[abartlet/samba.git/.git] / libcli / util / ntstatus.h
index b7195a41b44e64aaf250113791458d72c9386394..bf03d51d02221185be09330439445bf115d33352 100644 (file)
@@ -632,7 +632,11 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str);
 #define NT_STATUS_IS_ERR(x) ((NT_STATUS_V(x) & 0xc0000000) == 0xc0000000)
 /* checking for DOS error mapping here is ugly, but unfortunately the
    alternative is a very intrusive rewrite of the torture code */
+#if _SAMBA_BUILD_ == 4
 #define NT_STATUS_EQUAL(x,y) (NT_STATUS_IS_DOS(x)||NT_STATUS_IS_DOS(y)?ntstatus_dos_equal(x,y):NT_STATUS_V(x) == NT_STATUS_V(y))
+#else
+#define NT_STATUS_EQUAL(x,y) (NT_STATUS_V(x) == NT_STATUS_V(y))
+#endif
 
 #define NT_STATUS_HAVE_NO_MEMORY(x) do { \
        if (!(x)) {\