};
extern struct blob_table *
-new_blob_table(size_t capacity) _malloc_attribute;
+new_blob_table(size_t capacity);
extern void
free_blob_table(struct blob_table *table);
int write_resource_flags);
extern struct blob_descriptor *
-new_blob_descriptor(void) _malloc_attribute;
+new_blob_descriptor(void);
extern struct blob_descriptor *
-clone_blob_descriptor(const struct blob_descriptor *blob) _malloc_attribute;
+clone_blob_descriptor(const struct blob_descriptor *blob);
extern void
blob_decrement_refcnt(struct blob_descriptor *blob, struct blob_table *table);
# define _cold_attribute
#endif
-/* Hint that the annotated function is malloc-like: any non-null pointer it
- * returns will not alias any pointer previously in use by the program. */
-#define _malloc_attribute __attribute__((malloc))
-
/* Hint that the annotated function takes a printf()-like format string and
* arguments. This is currently disabled on Windows because MinGW does not
* support this attribute on functions taking wide-character strings. */
do_canonicalize_path(const tchar *in, tchar *out);
extern tchar *
-canonicalize_wim_path(const tchar *wim_path) _malloc_attribute;
+canonicalize_wim_path(const tchar *wim_path);
/* is_any_path_separator() - characters treated as path separators in WIM path
* specifications and capture configuration files (the former will be translated
*******************/
extern void *
-wimlib_malloc(size_t size) _malloc_attribute;
+wimlib_malloc(size_t size);
extern void
wimlib_free_memory(void *p);
wimlib_realloc(void *ptr, size_t size);
extern void *
-wimlib_calloc(size_t nmemb, size_t size) _malloc_attribute;
+wimlib_calloc(size_t nmemb, size_t size);
extern char *
-wimlib_strdup(const char *str) _malloc_attribute;
+wimlib_strdup(const char *str);
#ifdef __WIN32__
extern wchar_t *
-wimlib_wcsdup(const wchar_t *str) _malloc_attribute;
+wimlib_wcsdup(const wchar_t *str);
#endif
extern void *
-wimlib_aligned_malloc(size_t size, size_t alignment) _malloc_attribute;
+wimlib_aligned_malloc(size_t size, size_t alignment);
extern void
wimlib_aligned_free(void *ptr);
extern void *
-memdup(const void *mem, size_t size) _malloc_attribute;
+memdup(const void *mem, size_t size);
#define MALLOC wimlib_malloc
#define FREE wimlib_free_memory