File: platform.h

package info (click to toggle)
gimp-plugin-registry 5.20120621
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 56,020 kB
  • sloc: ansic: 46,068; lisp: 20,560; python: 14,495; sh: 3,294; cpp: 2,528; makefile: 1,041; xml: 546
file content (45 lines) | stat: -rw-r--r-- 1,279 bytes parent folder | download | duplicates (6)
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
#ifndef SEPARATE_PLATFORM_H
#define SEPARATE_PLATFORM_H

#include "lcms_wrapper.h"

#ifdef G_OS_WIN32

#define DEFAULT_RGB_PROFILE g_build_filename( g_getenv( "SYSTEMROOT" ), "\\system32\\spool\\drivers\\color\\sRGB Color Space Profile.icm", NULL )
#define DEFAULT_CMYK_PROFILE g_build_filename( g_getenv( "SYSTEMROOT" ), "\\system32\\spool\\drivers\\color\\USWebCoatedSWOP.icc", NULL )
/* For Japanese users */
//#define DEFAULT_CMYK_PROFILE g_build_filename( g_getenv( "SYSTEMROOT" ), "\\system32\\spool\\drivers\\color\\JapanColor2001Coated.icc", NULL )

#else

#ifndef O_BINARY

#define O_BINARY 0

#endif /* O_BINARY */

#ifdef __APPLE__ 

#define DEFAULT_RGB_PROFILE g_strdup( "/System/Library/ColorSync/Profiles/sRGB Profile.icc" )
#define DEFAULT_CMYK_PROFILE g_strdup( "/System/Library/ColorSync/Profiles/Generic CMYK Profile.icc" )

#else

#define DEFAULT_RGB_PROFILE g_strdup( "/usr/share/color/icc/sRGB Color Space Profile.icm" )
#define DEFAULT_CMYK_PROFILE g_strdup( "/usr/share/color/icc/USWebCoatedSWOP.icc" )

#endif /* __APPLE__ */

#endif /* G_OS_WIN32 */

#if ! (GIMP_MAJOR_VERSION > 2 || (GIMP_MAJOR_VERSION == 2 && GIMP_MINOR_VERSION >= 4))
#define USE_ICC_BUTTON
#endif

#ifdef DITHER_SH
#define ENABLE_DITHER
#else
#define DITHER_SH(s) (0)
#endif

#endif