def flag_handler(self, name, flags):
    if (name in ('cflags', 'cxxflags')):
        if ('@3:%gcc' in self.spec):
            flags.append('-fpermissive')
        if (('+hdf5' in self.spec) and ('@1.10:' in self.spec['hdf5'])):
            flags.append('-DH5_USE_18_API')
    return (flags, None, None)
def flag_handler(self, name, flags):
    if (name in ('cflags', 'cxxflags')):
        if ('@3:%gcc' in self.spec):
            flags.append('-fpermissive')
        if (('+hdf5' in self.spec) and ('@1.10:' in self.spec['hdf5'])):
            flags.append('-DH5_USE_18_API')
    return (flags, None, None)