"Fossies" - the Fresh Open Source Software Archive 
Member "libextractor-1.11/src/include/platform.h" (30 Jan 2021, 1957 Bytes) of package /linux/privat/libextractor-1.11.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "platform.h" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
1.10_vs_1.11.
1 /*
2 This file is part of GNUnet.
3 Copyright (C) 2001, 2002, 2003, 2004, 2005 Christian Grothoff (and other contributing authors)
4
5 libextractor is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 libextractor is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with libextractor; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19 */
20 /**
21 * @file include/platform.h
22 * @brief plaform specifics
23 * @author Nils Durner
24 */
25
26 #ifndef PLATFORM_H
27 #define PLATFORM_H
28
29 #include "config.h"
30 #ifndef FRAMEWORK_BUILD
31 #include "gettext.h"
32 #define _(a) dgettext (PACKAGE, a)
33 #else
34 #include "libintlemu.h"
35 #define _(a) dgettext ("org.gnunet.libextractor", a)
36 #endif
37
38 #include <string.h>
39 #include <unistd.h>
40 #include <ctype.h>
41 #include <stdlib.h>
42 #include <stdio.h>
43 #include <stdint.h>
44 #include <fcntl.h>
45 #include <time.h>
46 #include <utime.h>
47 #include <errno.h>
48 #include <stdarg.h>
49 #include <limits.h>
50 #include <stddef.h>
51 #include <sys/types.h>
52 #include <sys/stat.h>
53 #ifndef MINGW
54 #include <sys/socket.h>
55 #include <sys/mman.h>
56 #include <netinet/in.h>
57 #include <arpa/inet.h>
58 #else
59 #include <winsock2.h>
60 #endif
61 #include <locale.h>
62 #if HAVE_ICONV_H
63 #include <iconv.h>
64 #endif
65 #include <langinfo.h>
66
67 #ifndef SIZE_MAX
68 #define SIZE_MAX ((size_t) -1)
69 #endif
70
71 #if DARWIN
72 #include <mach-o/dyld.h>
73 #include <mach-o/ldsyms.h>
74 #endif
75
76 #if ! WINDOWS
77 #define ABORT() abort ()
78 #else
79 #define ABORT() DebugBreak ()
80 #endif
81
82
83 #endif