4 // #define DEBUG_SHARED_PTR
7 #pragma warning(disable : 4503)
8 #ifndef _SCL_SECURE_NO_WARNINGS
9 #define _SCL_SECURE_NO_WARNINGS
11 #ifndef _CRT_SECURE_NO_WARNINGS
12 #define _CRT_SECURE_NO_WARNINGS
14 #ifndef _CRT_NONSTDC_NO_DEPRECATE
15 #define _CRT_NONSTDC_NO_DEPRECATE
23 #define DEPRECATED(func) func __attribute__ ((deprecated))
24 #elif defined(_MSC_VER)
25 #define DEPRECATED(func) __declspec(deprecated) func
27 #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
28 #define DEPRECATED(func) func
33 /* You should define ADD_EXPORTS *only* when building the DLL. */
35 #define ADDAPI __declspec(dllexport)
36 #define ADDCALL __cdecl
42 #else /* _WIN32 not defined. */
44 /* Define with no value on non-Windows OSes. */
50 /* Make sure functions are exported with C linkage under C++ compilers. */
56 // Different render styles
57 enum Sass_Output_Style {
61 SASS_STYLE_COMPRESSED,
62 // only used internaly
67 // to allocate buffer to be filled
68 ADDAPI void* ADDCALL sass_alloc_memory(size_t size);
69 // to allocate a buffer from existing string
70 ADDAPI char* ADDCALL sass_copy_c_string(const char* str);
71 // to free overtaken memory when done
72 ADDAPI void ADDCALL sass_free_memory(void* ptr);
74 // Some convenient string helper function
75 ADDAPI char* ADDCALL sass_string_quote (const char* str, const char quote_mark);
76 ADDAPI char* ADDCALL sass_string_unquote (const char* str);
78 // Implemented sass language version
79 // Hardcoded version 3.4 for time being
80 ADDAPI const char* ADDCALL libsass_version(void);
82 // Get compiled libsass language
83 ADDAPI const char* ADDCALL libsass_language_version(void);
86 } // __cplusplus defined.