fork download
  1. #ifndef _lcms2_H
  2.  
  3. // Calling convention -- this is hardly platform and compiler dependent
  4. #ifdef CMS_IS_WINDOWS_
  5. # if defined(CMS_DLL) || defined(CMS_DLL_BUILD)
  6. # ifdef __BORLANDC__
  7. # define CMSEXPORT __stdcall _export
  8. # define CMSAPI
  9. # else
  10. # define CMSEXPORT _stdcall
  11. # ifdef CMS_DLL_BUILD
  12. # define CMSAPI __declspec(dllexport)
  13. # else
  14. # define CMSAPI __declspec(dllimport)
  15. # endif
  16. # endif
  17. # else
  18. # define CMSEXPORT
  19. # define CMSAPI
  20. # endif
  21. #else
  22. # define CMSEXPORT
  23. # define CMSAPI
  24. #endif
  25.  
  26. CMSAPI int CMSEXPORT cmsstrcasecmp(const char* s1, const char* s2);
  27. CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
  28.  
  29. // Plug-In registering -------------
  30.  
  31. CMSAPI cmsBool CMSEXPORT cmsPlugin(void* Plugin);
  32. CMSAPI void CMSEXPORT cmsUnregisterPlugins(void);
  33.  
  34. CMSAPI void CMSEXPORT cmsXYZ2xyY(cmsCIExyY* Dest, const cmsCIEXYZ* Source);
  35. CMSAPI void CMSEXPORT cmsxyY2XYZ(cmsCIEXYZ* Dest, const cmsCIExyY* Source);
  36.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: unterminated #ifndef
prog.cpp:27: error: ‘FILE’ was not declared in this scope
prog.cpp:27: error: ‘f’ was not declared in this scope
prog.cpp:31: error: ‘cmsBool’ does not name a type
prog.cpp:34: error: variable or field ‘cmsXYZ2xyY’ declared void
prog.cpp:34: error: ‘cmsCIExyY’ was not declared in this scope
prog.cpp:34: error: ‘Dest’ was not declared in this scope
prog.cpp:34: error: expected primary-expression before ‘const’
prog.cpp:35: error: variable or field ‘cmsxyY2XYZ’ declared void
prog.cpp:35: error: ‘cmsCIEXYZ’ was not declared in this scope
prog.cpp:35: error: ‘Dest’ was not declared in this scope
prog.cpp:35: error: expected primary-expression before ‘const’
stdout
Standard output is empty