The NSAPI_VERSION macro defines the NSAPI version used at compile time. This value is determined by the value of the USE_NSAPI_VERSION macro or by the highest NSAPI version supported by the nsapi.h header the plug-in was compiled against. The NSAPI version is encoded as in USE_NSAPI_VERSION.
Do not attempt to set the value of the NSAPI_VERSION macro directly. Instead, use the USE_NSAPI_VERSION macro.
int NSAPI_VERSION
NSAPI_PUBLIC int log_nsapi_compile_time_version(pblock *pb, Session *sn, Request *rq) { log_error(LOG_INFORM, "log-nsapi-compile-time-version", sn, rq, "Plugin compiled against NSAPI version %d.%d\n", NSAPI_VERSION / 100, NSAPI_VERSION % 100); return REQ_PROCEED; }