From 2fb7df85480ba40cc4f2e550b1822e969c818cd7 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 20 Jun 2011 13:52:32 -0500 Subject: [PATCH] libCom: __attribute__((deprecated)) not in gcc 2.x Only apply this attribute for gcc 3 and later. --- src/libCom/misc/compilerDependencies.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/misc/compilerDependencies.h b/src/libCom/misc/compilerDependencies.h index 4d451469e..4c2a8400f 100644 --- a/src/libCom/misc/compilerDependencies.h +++ b/src/libCom/misc/compilerDependencies.h @@ -95,7 +95,7 @@ /* * Deprecation marker */ -#ifdef __GNUC__ +#if defined( __GNUC__ ) && (__GNUC__ > 2) # define EPICS_DEPRECATED __attribute__((deprecated)) #else # define EPICS_DEPRECATED