#ifndef __OCL_PRINTF_H__
#define __OCL_PRINTF_H__

#include "ocl_types.h"

/* The printf function. */
/* From LLVM 3.4, c string are all in constant address space */
#if 100*__clang_major__ + __clang_minor__ < 304
int __gen_ocl_printf_stub(const char * format, ...);
#else
int __gen_ocl_printf_stub(constant char * format, ...);
#endif
#define printf __gen_ocl_printf_stub

#endif

Add printf module into libocl
Add printf module into libocl

Signed-off-by: Junyan He <8f73a735c668918c9613b750d3a88ebf2489599f@linux.intel.com>
Reviewed-by: Zhigang Gong <e04a7b9b70b1e4c6318cf117dcd1a9056e14b97a@intel.com>
