]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - cups/raster-private.h
Migrate Windows conditional code to _WIN32 define.
[thirdparty/cups.git] / cups / raster-private.h
... / ...
CommitLineData
1/*
2 * Private image library definitions for CUPS.
3 *
4 * Copyright © 2007-2018 by Apple Inc.
5 * Copyright © 1993-2006 by Easy Software Products.
6 *
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
8 * information.
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>
22# ifdef _WIN32
23# include <io.h>
24# include <winsock2.h> /* for htonl() definition */
25# else
26# include <unistd.h>
27# include <fcntl.h>
28# endif /* _WIN32 */
29
30
31/*
32 * min/max macros...
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 */
41
42
43/*
44 * Prototypes...
45 */
46
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);
50extern void _cupsRasterClearError(void);
51
52#endif /* !_CUPS_RASTER_PRIVATE_H_ */