Beginnings of an MSCMS implementation based on LittleCMS.
[wine.git] / dlls / mscms / mscms_main.c
blobe4757d859e6e129a970993593d9ab0a5565aa664
1 /*
2 * MSCMS - Color Management System for Wine
4 * Copyright 2004 Hans Leidekker
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "config.h"
23 #include <stdarg.h>
25 #include "windef.h"
26 #include "winbase.h"
27 #include "wingdi.h"
28 #include "icm.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(mscms);
33 #ifdef HAVE_LCMS
35 /* These basic Windows types are defined in lcms.h when compiling on
36 * a non-Windows platforms (why?), so they would normally not conflict
37 * with anything included earlier. But since we are building Wine they
38 * most certainly will have been defined before we include lcms.h.
39 * The preprocessor comes to the rescue.
42 #define BYTE LCMS_BYTE
43 #define LPBYTE LCMS_LPBYTE
44 #define WORD LCMS_WORD
45 #define LPWORD LCMS_LPWORD
46 #define DWORD LCMS_DWORD
47 #define LPDWORD LCMS_LPDWORD
48 #define BOOL LCMS_BOOL
49 #define LPSTR LCMS_LPSTR
50 #define LPVOID LCMS_LPVOID
52 #undef cdecl
53 #undef FAR
55 #undef ZeroMemory
56 #undef CopyMemory
58 #undef LOWORD
59 #undef MAX_PATH
61 #include <lcms.h>
63 /* Funny thing is lcms.h defines DWORD as an 'unsigned int' whereas Wine
64 * defines it as an 'unsigned long'. To avoid compiler warnings we use a
65 * preprocessor define for DWORD and LPDWORD to get back Wine's orginal
66 * (typedef) definitions.
69 #undef DWORD
70 #undef LPDWORD
72 #define DWORD DWORD
73 #define LPDWORD LPDWORD
75 #endif
77 HPROFILE WINAPI OpenColorProfileA( PPROFILE profile, DWORD access, DWORD sharing, DWORD creation )
79 FIXME("( %p, %lx, %lx, %lx ) stub!\n", profile, access, sharing, creation );
81 return NULL;
84 HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing, DWORD creation )
86 FIXME("( %p, %lx, %lx, %lx ) stub!\n", profile, access, sharing, creation );
88 return NULL;
91 BOOL WINAPI CloseColorProfile( HPROFILE profile )
93 FIXME("( %p ) stub!\n", profile );
95 return FALSE;