remove #defines to prevent use of discouraged external functions