1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/util/charset_compat.h
Martin Schwenke c12aa0c444 lib/util: Use charset_compat.h if SAMBA_UTIL_CORE_ONLY
When doing a CTDB standalone build we don't want to use dynconfig,
since this introduces a lot of unwanted complexity.  To avoid this,
either:

* charset needs to be nobbled to avoid loading the case tables, since
  this depends on dynconfig; or

* charset needs to be avoid completely, so some functions need to be
  replaced with their ASCII counterparts.

The 2nd options seems more honest and less error-prone.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-10-04 00:11:21 +02:00

10 lines
199 B
C

#ifndef _SAMBA_CHARSET_COMPAT_H_
#define _SAMBA_CHARSET_COMPAT_H_
#include <string.h>
#define strchr_m(h, n) strchr(h, n)
#define strstr_m(h, n) strstr(h, n)
#endif /* _SAMBA_CHARSET_COMPAT_H_ */