]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/raster-private.h
Migrate Windows conditional code to _WIN32 define.
[thirdparty/cups.git] / cups / raster-private.h
CommitLineData
a4845881 1/*
6e5a57e8 2 * Private image library definitions for CUPS.
a4845881 3 *
be3b49a3
MS
4 * Copyright © 2007-2018 by Apple Inc.
5 * Copyright © 1993-2006 by Easy Software Products.
a4845881 6 *
be3b49a3
MS
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
8 * information.
a4845881
MS
9 */
10
11#ifndef _CUPS_RASTER_PRIVATE_H_
12# define _CUPS_RASTER_PRIVATE_H_
13
14/*
15 * Include necessary headers...
16 */
17
18# include "raster.h"
19# include <cups/cups.h>
20# include <cups/debug-private.h>
21# include <cups/string-private.h>
19dc16f7 22# ifdef _WIN32
a4845881
MS
23# include <io.h>
24# include <winsock2.h> /* for htonl() definition */
25# else
26# include <unistd.h>
27# include <fcntl.h>
19dc16f7 28# endif /* _WIN32 */
a4845881
MS
29
30
31/*
f3c17241 32 * min/max macros...
a4845881
MS
33 */
34
35# ifndef max
36# define max(a,b) ((a) > (b) ? (a) : (b))
37# endif /* !max */
38# ifndef min
39# define min(a,b) ((a) < (b) ? (a) : (b))
40# endif /* !min */
a4845881
MS
41
42
43/*
44 * Prototypes...
45 */
46
be3b49a3
MS
47extern int _cupsRasterExecPS(cups_page_header2_t *h, int *preferred_bits,
48 const char *code) _CUPS_NONNULL(3);
49extern void _cupsRasterAddError(const char *f, ...) _CUPS_FORMAT(1,2);
a4845881
MS
50extern void _cupsRasterClearError(void);
51
52#endif /* !_CUPS_RASTER_PRIVATE_H_ */