2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 19:30:08 +01:00
xash3d-fwgs/public/tests/test_validate_target.c

22 lines
333 B
C

#include <stdlib.h>
#include "build.h"
#include "buildenums.h"
#include "crtlib.h"
#ifndef VALIDATE_TARGET
#error
#endif
int main( void )
{
string buf;
if( Q_snprintf( buf, sizeof( buf ), "%s-%s", Q_buildos( ), Q_buildarch( )) < 0 )
return 1;
if( Q_strcmp( buf, VALIDATE_TARGET ) != 0 )
return 2;
return EXIT_SUCCESS;
}