2012-05-11 18:47:20 +00:00
|
|
|
/*
|
|
|
|
* stdinc.h
|
|
|
|
* pull in standard headers (including portability hacks)
|
|
|
|
*
|
2012-07-26 02:09:31 +00:00
|
|
|
* Copyright (c) 2012 pkgconf authors (see AUTHORS).
|
2012-05-11 18:47:20 +00:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
2012-07-20 19:29:58 +00:00
|
|
|
* This software is provided 'as is' and without any warranty, express or
|
|
|
|
* implied. In no event shall the authors be liable for any damages arising
|
|
|
|
* from the use of this software.
|
2012-05-11 18:47:20 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STDINC_H
|
|
|
|
#define __STDINC_H
|
|
|
|
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <libgen.h>
|
2012-07-26 04:49:07 +00:00
|
|
|
#include <dirent.h>
|
2012-05-11 18:47:20 +00:00
|
|
|
|
2012-05-12 22:54:47 +00:00
|
|
|
#ifdef _WIN32
|
2012-05-11 18:47:20 +00:00
|
|
|
# define WIN32_LEAN_AND_MEAN
|
|
|
|
# include <windows.h>
|
|
|
|
# include <malloc.h>
|
2012-07-21 19:33:07 +00:00
|
|
|
# define PATH_DEV_NULL "nul"
|
|
|
|
#else
|
|
|
|
# define PATH_DEV_NULL "/dev/null"
|
2012-05-11 18:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|