/usr/include/mimetic/libconfig.h is in libmimetic-dev 0.9.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /***************************************************************************
copyright : (C) by 2002-2004 Stefano Barbato
email : stefano@codesink.org
$Id: libconfig.h,v 1.10 2009-02-16 18:08:59 tat Exp $
***************************************************************************/
#ifndef _MIMETIC_LIB_CONFIG_H_
#define _MIMETIC_LIB_CONFIG_H_
#if defined(__unix__) || defined(__linux__) || defined(__unix) || defined(_AIX)
#ifdef HAVE_MIMETIC_CONFIG
#include "config.h"
#endif
#define CONFIG_UNIX
#endif
/* Mac OS X */
#if defined(__APPLE__) && defined(__MACH__)
typedef unsigned int uint;
#ifdef HAVE_MIMETIC_CONFIG
#include "config.h"
#endif
#define CONFIG_UNIX
#endif
/* Windows */
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
#include <mimetic/config_win32.h>
#include <process.h>
#include <io.h>
#include <ctime>
#include <cstdio>
typedef unsigned int uint;
#define CONFIG_WIN32
#endif
#if !defined(CONFIG_WIN32) && !defined(CONFIG_UNIX)
#error "I'm unable to guess platform type. please define CONFIG_WIN32 or CONFIG_UNIX"
#endif
#if defined(CONFIG_WIN32) && defined(CONFIG_UNIX)
#error "I'm unable to guess platform type. please define CONFIG_UNIX or CONFIG_WIN32"
#endif
#ifdef CONFIG_UNIX
#include <cstdlib>
#define PATH_SEPARATOR '/'
typedef unsigned int uint32;
struct newline_traits
{
enum { lf = 0xA, cr = 0xD };
enum { size = 1 };
enum { ch0 = lf, ch1 = 0 };
};
#endif
#ifdef CONFIG_WIN32
#define PATH_SEPARATOR '\\'
typedef unsigned int uint32;
struct newline_traits
{
enum { lf = 0xA, cr = 0xD };
enum { size = 2 };
enum { ch0 = cr, ch1 = lf };
};
#endif
#endif
|