2004-02-01 20:53:28 +03:00
|
|
|
#include "foo.h"
|
|
|
|
|
2006-03-04 02:44:32 +03:00
|
|
|
#ifdef STAGE_2
|
|
|
|
# include <foo/lib1.h>
|
|
|
|
# include <foo/lib2renamed.h>
|
2007-05-25 19:09:22 +04:00
|
|
|
# include <lib3.h>
|
2007-05-25 19:41:37 +04:00
|
|
|
# include <old/lib2.h>
|
|
|
|
# include <old/lib3.h>
|
2006-03-04 02:44:32 +03:00
|
|
|
#else
|
|
|
|
# include "lib1.h"
|
|
|
|
# include "lib2.h"
|
|
|
|
#endif
|
|
|
|
|
2004-06-28 22:40:17 +04:00
|
|
|
#include "lib4.h"
|
2004-02-01 20:53:28 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main ()
|
|
|
|
{
|
|
|
|
if ( Lib1Func() != 2.0 )
|
|
|
|
{
|
|
|
|
printf("Problem with lib1\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if ( Lib2Func() != 1.0 )
|
|
|
|
{
|
|
|
|
printf("Problem with lib2\n");
|
|
|
|
return 1;
|
|
|
|
}
|
2004-06-28 22:40:17 +04:00
|
|
|
if ( Lib4Func() != 4.0 )
|
|
|
|
{
|
|
|
|
printf("Problem with lib4\n");
|
|
|
|
return 1;
|
|
|
|
}
|
2004-02-09 19:33:00 +03:00
|
|
|
printf("The value of Foo: %s\n", foo);
|
2004-02-04 17:42:50 +03:00
|
|
|
return SomeFunctionInFoo()-5;
|
2004-02-01 20:53:28 +03:00
|
|
|
}
|