blob: 25b7e96452df3c5683b8dd3eade98809ccd051a4 [file] [log] [blame]
// -*- C++ -*-
//===----------------------------- stubs.cpp ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifdef __ANDROID__
#ifdef __cplusplus
extern "C" {
#endif
#include <errno.h>
#include <wchar.h>
#include <support/android/nl_types.h>
static void unimplemented_stub(const char* function) {
const char* fmt = "%s(3) is not implemented on Android\n";
fprintf(stderr, fmt, function);
}
#define UNIMPLEMENTED unimplemented_stub(__PRETTY_FUNCTION__)
nl_catd catopen(const char *, int)
{
UNIMPLEMENTED;
return (nl_catd)-1;
}
int catclose(nl_catd)
{
UNIMPLEMENTED;
return -1;
}
char *catgets(nl_catd, int, int, const char *message)
{
UNIMPLEMENTED;
return (char *)message;
}
#ifdef __cplusplus
}
#endif
#endif // __ANDROID__