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