Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4"
[tprouty/samba.git] / source3 / include / includes.h
index 4aa3c0734381bd1e90556cea4d56e968e63dad8b..930df6e36cd33227fe229b7f2d0549df934ee9ad 100644 (file)
@@ -1050,6 +1050,8 @@ ssize_t readahead(int fd, off64_t offset, size_t count);
 #undef HAVE_MMAP
 #endif
 
+#define CONST_DISCARD(type, ptr)      ((type) ((void *) (ptr)))
+
 void smb_panic( const char *why ) _NORETURN_;
 void dump_core(void) _NORETURN_;
 void exit_server(const char *const reason) _NORETURN_;