[argyllcms] Re: Compiling argyllcms using MS Visual Studio Community 2017

  • From: Boleslaw Ciesielski <combolek@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 29 Nov 2018 15:58:33 -0800

On 11/28/18 9:10 PM, Graeme Gill wrote:

  3. Commented out the enum of WCS_PROFILE_MANAGEMENT_SCOPE in 
spectro\dispwin.c (it’s
     already in icm.h in the windows kit)

That's already protected, but evidently the #defines have changed in 
Microsoft's code.
So the question is, what should it be protected by ? It's currently:

#if !defined(NTDDI_LONGHORN) || NTDDI_VERSION < NTDDI_LONGHORN

In the latest headers (10.0.17763) it is defined like this:

#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)

//
// WCS profile management scope - system-wide and current-user
//

typedef enum
{
    WCS_PROFILE_MANAGEMENT_SCOPE_SYSTEM_WIDE,
    WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER
} WCS_PROFILE_MANAGEMENT_SCOPE;

#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */


where (in winapifamily.h):

#define WINAPI_FAMILY_PARTITION(Partitions)     (Partitions)

Other related posts: