BEntry and BDirectory also needed stat related symbols defined when compiling

the test environment for GCC4.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33251 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-09-23 10:32:49 +00:00
parent b671e9bbdb
commit 23f83f8ccb
2 changed files with 53 additions and 34 deletions

View File

@ -998,28 +998,37 @@ create_directory(const char* path, mode_t mode)
#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST
# if __GNUC__ == 2 // gcc 2
B_DEFINE_SYMBOL_VERSION("_GetStatFor__C10BDirectoryPCcP4stat",
"GetStatFor__C10BDirectoryPCcP4stat@@LIBBE_TEST");
B_DEFINE_SYMBOL_VERSION("_GetStatFor__C10BDirectoryPCcP4stat",
"GetStatFor__C10BDirectoryPCcP4stat@@LIBBE_TEST");
#elif __GNUC__ == 2 // gcc 2
# else // gcc 4
// BeOS compatible GetStatFor()
B_DEFINE_SYMBOL_VERSION("_GetStatFor__C10BDirectoryPCcP9stat_beos",
"GetStatFor__C10BDirectoryPCcP4stat@LIBBE_BASE");
B_DEFINE_SYMBOL_VERSION("_ZNK10BDirectory11_GetStatForEPKcP4stat",
"_ZNK10BDirectory10GetStatForEPKcP4stat@@LIBBE_TEST");
// Haiku GetStatFor()
B_DEFINE_SYMBOL_VERSION("_GetStatFor__C10BDirectoryPCcP4stat",
"GetStatFor__C10BDirectoryPCcP4stat@@LIBBE_1_ALPHA1");
# endif // gcc 4
#else // !HAIKU_TARGET_PLATFORM_LIBBE_TEST
# if __GNUC__ == 2 // gcc 2
#else // gcc 4
// BeOS compatible GetStatFor()
B_DEFINE_SYMBOL_VERSION("_GetStatFor__C10BDirectoryPCcP9stat_beos",
"GetStatFor__C10BDirectoryPCcP4stat@LIBBE_BASE");
// BeOS compatible GetStatFor()
B_DEFINE_SYMBOL_VERSION("_ZNK10BDirectory11_GetStatForEPKcP9stat_beos",
"_ZNK10BDirectory10GetStatForEPKcP4stat@LIBBE_BASE");
// Haiku GetStatFor()
B_DEFINE_SYMBOL_VERSION("_GetStatFor__C10BDirectoryPCcP4stat",
"GetStatFor__C10BDirectoryPCcP4stat@@LIBBE_1_ALPHA1");
// Haiku GetStatFor()
B_DEFINE_SYMBOL_VERSION("_ZNK10BDirectory11_GetStatForEPKcP4stat",
"_ZNK10BDirectory10GetStatForEPKcP4stat@@LIBBE_1_ALPHA1");
# else // gcc 4
#endif // gcc 4
// BeOS compatible GetStatFor()
B_DEFINE_SYMBOL_VERSION("_ZNK10BDirectory11_GetStatForEPKcP9stat_beos",
"_ZNK10BDirectory10GetStatForEPKcP4stat@LIBBE_BASE");
// Haiku GetStatFor()
B_DEFINE_SYMBOL_VERSION("_ZNK10BDirectory11_GetStatForEPKcP4stat",
"_ZNK10BDirectory10GetStatForEPKcP4stat@@LIBBE_1_ALPHA1");
# endif // gcc 4
#endif // !HAIKU_TARGET_PLATFORM_LIBBE_TEST

View File

@ -1131,28 +1131,38 @@ operator<(const entry_ref & a, const entry_ref & b)
#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST
# if __GNUC__ == 2 // gcc 2
B_DEFINE_SYMBOL_VERSION("_GetStat__C6BEntryP4stat",
"GetStat__C6BEntryP4stat@@LIBBE_TEST");
B_DEFINE_SYMBOL_VERSION("_GetStat__C6BEntryP4stat",
"GetStat__C6BEntryP4stat@@LIBBE_TEST");
#elif __GNUC__ == 2 // gcc 2
# else // gcc 4
// BeOS compatible GetStat()
B_DEFINE_SYMBOL_VERSION("_GetStat__C6BEntryP9stat_beos",
"GetStat__C6BEntryP4stat@LIBBE_BASE");
// Haiku GetStat()
B_DEFINE_SYMBOL_VERSION("_ZNK6BEntry8_GetStatEP4stat",
"_ZNK6BEntry7GetStatEP4stat@@LIBBE_TEST");
// Haiku GetStat()
B_DEFINE_SYMBOL_VERSION("_GetStat__C6BEntryP4stat",
"GetStat__C6BEntryP4stat@@LIBBE_1_ALPHA1");
# endif // gcc 4
#else // !HAIKU_TARGET_PLATFORM_LIBBE_TEST
# if __GNUC__ == 2 // gcc 2
#else // gcc 4
// BeOS compatible GetStat()
B_DEFINE_SYMBOL_VERSION("_GetStat__C6BEntryP9stat_beos",
"GetStat__C6BEntryP4stat@LIBBE_BASE");
// BeOS compatible GetStat()
B_DEFINE_SYMBOL_VERSION("_ZNK6BEntry8_GetStatEP9stat_beos",
"_ZNK6BEntry7GetStatEP4stat@LIBBE_BASE");
// Haiku GetStat()
B_DEFINE_SYMBOL_VERSION("_GetStat__C6BEntryP4stat",
"GetStat__C6BEntryP4stat@@LIBBE_1_ALPHA1");
// Haiku GetStat()
B_DEFINE_SYMBOL_VERSION("_ZNK6BEntry8_GetStatEP4stat",
"_ZNK6BEntry7GetStatEP4stat@@LIBBE_1_ALPHA1");
# else // gcc 4
#endif // gcc 4
// BeOS compatible GetStat()
B_DEFINE_SYMBOL_VERSION("_ZNK6BEntry8_GetStatEP9stat_beos",
"_ZNK6BEntry7GetStatEP4stat@LIBBE_BASE");
// Haiku GetStat()
B_DEFINE_SYMBOL_VERSION("_ZNK6BEntry8_GetStatEP4stat",
"_ZNK6BEntry7GetStatEP4stat@@LIBBE_1_ALPHA1");
# endif // gcc 4
#endif // !HAIKU_TARGET_PLATFORM_LIBBE_TEST