summaryrefslogtreecommitdiff
path: root/libcli/util
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-11-25 15:30:20 +1100
committerAndrew Tridgell <tridge@samba.org>2009-11-25 15:30:20 +1100
commit6eb262f0e8213415cfe425968c3e344a5d56e179 (patch)
tree3feadb9a1416e17604ce5b9856eaa7ecb7403576 /libcli/util
parentfed8b652bf4e66b893f3fe230e2fe9bdbed3f94f (diff)
downloadsamba-6eb262f0e8213415cfe425968c3e344a5d56e179.tar.gz
samba-6eb262f0e8213415cfe425968c3e344a5d56e179.tar.bz2
samba-6eb262f0e8213415cfe425968c3e344a5d56e179.zip
libcli: allow ntstatus.h to be used by openchange
apparently ntstatus.h is used by openchange, but they don't include replace.h. This makes that possible again.
Diffstat (limited to 'libcli/util')
-rw-r--r--libcli/util/ntstatus.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcli/util/ntstatus.h b/libcli/util/ntstatus.h
index 88b4353c1d..c60e424f68 100644
--- a/libcli/util/ntstatus.h
+++ b/libcli/util/ntstatus.h
@@ -637,6 +637,14 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str);
/** Used by ntstatus_dos_equal: */
extern bool ntstatus_check_dos_mapping;
+/* we need these here for openchange */
+#ifndef likely
+#define likely(x) (x)
+#endif
+#ifndef unlikely
+#define unlikely(x) (x)
+#endif
+
#define NT_STATUS_IS_OK(x) (likely(NT_STATUS_V(x) == 0))
#define NT_STATUS_IS_ERR(x) (unlikely((NT_STATUS_V(x) & 0xc0000000) == 0xc0000000))
/* checking for DOS error mapping here is ugly, but unfortunately the