print_p.h revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1999-2001, 2003, 2004, 2007, 2010, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: print_p.h,v 1.6 2010/08/16 23:46:52 tbox Exp $ */
#ifndef LWRES_PRINT_P_H
#define LWRES_PRINT_P_H 1
/***
*** Imports
***/
#include <lwres/platform.h>
/*
* the platform does not need it. The standard Makefile will still
* not compile print.c or archive print.o, so this is just to make test
* compilation ("make print.o") easier.
*/
#if !defined(LWRES_PLATFORM_NEEDVSNPRINTF) && defined(LWRES__PRINT_SOURCE)
#define LWRES_PLATFORM_NEEDVSNPRINTF
#endif
#if !defined(LWRES_PLATFORM_NEEDSPRINTF) && defined(LWRES__PRINT_SOURCE)
#define LWRES_PLATFORM_NEEDSPRINTF
#endif
/***
*** Macros.
***/
#ifdef __GNUC__
#else
#endif
/***
*** Functions
***/
#ifdef LWRES_PLATFORM_NEEDVSNPRINTF
#include <stdarg.h>
#include <stddef.h>
#endif
#ifdef LWRES_PLATFORM_NEEDVSNPRINTF
int
LWRES_FORMAT_PRINTF(3, 0);
#ifdef vsnprintf
#endif
#define vsnprintf lwres__print_vsnprintf
int
#ifdef snprintf
#endif
#define snprintf lwres__print_snprintf
#endif /* LWRES_PLATFORM_NEEDVSNPRINTF */
#ifdef LWRES_PLATFORM_NEEDSPRINTF
int
#ifdef sprintf
#endif
#define sprintf lwres__print_sprintf
#endif
#endif /* LWRES_PRINT_P_H */