]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcint.h
Remove unused macros
[fontconfig.git] / src / fcint.h
index 81cde21d5e80bf1d9dded764b0a8c50f29d6c055..14008a34d9780f74f335f46f682d9cc2c81e5ab9 100644 (file)
@@ -428,11 +428,9 @@ typedef struct _FcCaseFold {
 #define fc_value_langset(v)    FcValueLangSet(v)
 #define fc_storage_type(v)     ((v)->type)
 
-#define fc_alignof(type) offsetof (struct { char c; type member; }, member)
-
 #define FC_CACHE_MAGIC_MMAP        0xFC02FC04
 #define FC_CACHE_MAGIC_ALLOC       0xFC02FC05
-#define FC_CACHE_CONTENT_VERSION    2
+#define FC_CACHE_CONTENT_VERSION    3 /* also check FC_CACHE_VERSION */
 
 struct _FcAtomic {
     FcChar8    *file;          /* original file name */
@@ -520,9 +518,6 @@ typedef struct _FcFileTime {
 
 typedef struct _FcCharMap FcCharMap;
 
-/* watch out; assumes that v is void * -PL */
-#define ALIGN(v,type) ((void *)(((uintptr_t)(v) + fc_alignof(type) - 1) & ~(fc_alignof(type) - 1)))
-
 /* fcblanks.c */
 
 /* fccache.c */