Library containing analogReadResolution and analogWriteResolution?

Test Library that I import into my sketch and get an error.

#ifndef TestLib_h
#define TestLib_h

#include "arduino.h"

analogReadResolution(12);

#endif

Error: TestLib.h:6:21: error: expected constructor, destructor, or type conversion before '(' token
Note that if I don't include "arduino.h" I get the same error.

johnwasser:
In the reference manual is says those two functions are for "Zero, Due & MKR Family". You have to select one of those board for those functions to be defined.

I did select Due as my board. That is not a problem.

I repeat, This code has no errors in IDE, but it does in my library