php-src/ext/fileinfo/libmagic/config.h
Peter Kokot 6e2ad3c4ba
Define HAVE_VISIBILITY for fileinfo extension (#14618)
The libmagic library also uses the HAVE_VISIBILITY macro that should be
defined to 1 if visibility is supported or 0 if not.

Follow-up of GH-5526 (-Wundef)
2024-06-21 16:18:28 +02:00

18 lines
293 B
C

#include "php.h"
#include "php_libmagic.h"
#ifndef HAVE_STDINT_H
#define HAVE_STDINT_H 1
#endif
#ifndef HAVE_STDINT_H
#define HAVE_STDINT_H 1
#endif
#ifndef HAVE_VISIBILITY
# ifdef HAVE_FUNC_ATTRIBUTE_VISIBILITY
# define HAVE_VISIBILITY 1
# else
# define HAVE_VISIBILITY 0
# endif
#endif