summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-19 22:00:17 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-19 22:00:17 +0000
commitfb1c9349cbf023ee283d3dbc3633407732b04ea3 (patch)
tree6ce0d310252edcb56929aa67db7a07cd985509ab /TAO
parentad97c3a0b5ad169d3e124afbd1dbb4c9c037fea5 (diff)
downloadATCD-fb1c9349cbf023ee283d3dbc3633407732b04ea3.tar.gz
Mon Feb 19 15:58:03 2001 Krishnakumar B <kitty@cs.wustl.edu>
* orbsvcs/examples/RtEC/Schedule/Service.cpp: Added a #ifdef to make sure that we are enabling the typedef TAO_Reconfig_Scheduler only if we are compiling with g++-2.8 or above.
Diffstat (limited to 'TAO')
-rw-r--r--TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp b/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp
index db2b99272e9..34786543733 100644
--- a/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp
@@ -22,8 +22,11 @@ ACE_RCSID(EC_Examples, Service, "$Id$")
int config_run = 0;
int parse_args (int argc, char *argv[]);
+#if (! defined (__GNUC__)) || (__GNUC__ > 2) || \
+ (__GNUC__ == 2 && defined (__GNUC_MINOR__) && __GNUC_MINOR__ >= 8)
typedef TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> RECONFIG_SCHED_TYPE;
+#endif
int
main (int argc, char* argv[])