Implement KRB5_ATTR_DEPRECATED for Windows
authorKen Raeburn <raeburn@mit.edu>
Tue, 28 Aug 2007 00:58:56 +0000 (00:58 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 28 Aug 2007 00:58:56 +0000 (00:58 +0000)
ticket: 2836

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19890 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/krb5.hin

index e3e2c04e1e2074a18ea49b97c8dabf0c19d3d139..279304edfbac9347be6867d6c243ac5379243cf6 100644 (file)
@@ -111,6 +111,8 @@ KRB5INT_BEGIN_DECLS
 
 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 30203
 # define KRB5_ATTR_DEPRECATED __attribute__((deprecated))
+#elif defined _WIN32
+# define KRB5_ATTR_DEPRECATED __declspec(deprecated)
 #else
 # define KRB5_ATTR_DEPRECATED
 #endif