Fix vendor amd defines if define callback is defined as a variable