View | Details | Raw Unified | Return to issue 77664
Collapse All | Expand All

(-) (+13 lines)
Lines 59-66 Link Here
59
static bridges::cpp_uno::shared::VtableFactory * pInstance;
59
static bridges::cpp_uno::shared::VtableFactory * pInstance;
60
60
61
#ifdef __GNUG__
61
#ifdef __GNUG__
62
#  if ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3))
63
// In g++ 3.3 and below this construct is broken for C++ 
64
// gpp33wad.c is the workaround
62
void dso_init(void) __attribute__((constructor));
65
void dso_init(void) __attribute__((constructor));
63
void dso_exit(void) __attribute__((destructor));
66
void dso_exit(void) __attribute__((destructor));
67
68
#  else
69
extern "C" {
70
#endif
64
#endif
71
#endif
65
72
66
void dso_init(void) {
73
void dso_init(void) {
Lines 76-81 void dso_exit(void) { Link Here
76
    }
83
    }
77
}
84
}
78
85
86
#ifdef __GNUG__
87
#  if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 3))
88
}
89
#  endif
90
#endif
91
79
#ifdef __SUNPRO_CC
92
#ifdef __SUNPRO_CC
80
# pragma init(dso_init)
93
# pragma init(dso_init)
81
# pragma fini(dso_exit)
94
# pragma fini(dso_exit)

Return to issue 77664