Day: April 15, 2015

error: ‘APR_STATUS_IS_SUCCESS’ was not declared in this scope

Initially fixed it this way:

#ifndef APR_STATUS_IS_SUCCESS
#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS)
#endif

But it is letter to replace APR_STATUS_IS_SUCCESS directly by:

-APR_STATUS_IS_SUCCESS(s)
+(s == APR_SUCCESS)

because APR_STATUS_IS_SUCCESS is a symbol for apr 0.9 and early.