meson: remove incorrect and unneeded check for ptrdiff_t
authorTim-Philipp Müller <tim@centricular.com>
Sat, 24 Sep 2016 17:22:26 +0000 (18:22 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 24 Sep 2016 17:22:26 +0000 (18:22 +0100)
Need to include stddef.h for it, so this would've worked:
if cc.has_type('ptrdiff_t', prefix: '#include <stddef.h>')

config.h.meson
meson.build

index 4a8a4dd..89dad71 100644 (file)
 /* Have PTHREAD_PRIO_INHERIT. */
 #mesondefine HAVE_PTHREAD_PRIO_INHERIT
 
-/* Define to 1 if the system has the type `ptrdiff_t'. */
-#mesondefine HAVE_PTRDIFF_T
-
 /* Define if RDTSC is available */
 #mesondefine HAVE_RDTSC
 
index f80fd99..28aeb73 100644 (file)
@@ -183,10 +183,6 @@ if cc.has_function('clock_gettime', prefix : '#include <time.h>')
   cdata.set('HAVE_CLOCK_GETTIME', 1)
 endif
 
-if cc.has_type('ptrdiff_t')
-  cdata.set('HAVE_PTRDIFF_T')
-endif
-
 # We only want to use the __declspec(dllexport/import) dance in GST_EXPORT when
 # building with MSVC
 if cc.get_id() == 'msvc'