[Lsb-messages] /var/www/bzr/lsb/devel/build_env r1969: add the deprecation markers to cups/raster.h (bug 3503)

Mats Wichmann mats at linuxfoundation.org
Tue May 29 13:21:14 UTC 2012


------------------------------------------------------------
revno: 1969
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Tue 2012-05-29 07:21:14 -0600
message:
  add the deprecation markers to cups/raster.h (bug 3503)
modified:
  headers/cups/raster.h
  package/Makefile
-------------- next part --------------
=== modified file 'headers/cups/raster.h'
--- a/headers/cups/raster.h	2012-05-18 12:04:09 +0000
+++ b/headers/cups/raster.h	2012-05-29 13:21:14 +0000
@@ -3,6 +3,14 @@
 #define _CUPS_RASTER_H_
 
 
+#if !defined(LSB_DECL_DEPRECATED)
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2))
+#define LSB_DECL_DEPRECATED __attribute__ ((__deprecated__))
+#else
+#define LSB_DECL_DEPRECATED
+#endif
+#endif				/* LSB_DECL_DEPRECATED */
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -225,13 +233,23 @@
 
     extern void cupsRasterClose(cups_raster_t * r);
     extern cups_raster_t *cupsRasterOpen(int fd, cups_mode_t mode);
+    /* This function is deprecated. Use cupsRasterReadHeader2 instead. */
     extern unsigned int cupsRasterReadHeader(cups_raster_t * r,
-					     cups_page_header_t * h);
+					     cups_page_header_t * h)
+#if __LSB_VERSION__ >= 50
+     LSB_DECL_DEPRECATED
+#endif				/* __LSB_VERSION__ >= 50 */
+    ;
     extern unsigned int cupsRasterReadPixels(cups_raster_t * r,
 					     unsigned char *p,
 					     unsigned int len);
+    /* This function is deprecated. Use cupsRasterWriteHeader2 instead. */
     extern unsigned int cupsRasterWriteHeader(cups_raster_t * r,
-					      cups_page_header_t * h);
+					      cups_page_header_t * h)
+#if __LSB_VERSION__ >= 50
+     LSB_DECL_DEPRECATED
+#endif				/* __LSB_VERSION__ >= 50 */
+    ;
     extern unsigned int cupsRasterWritePixels(cups_raster_t * r,
 					      unsigned char *p,
 					      unsigned int len);

=== modified file 'package/Makefile'
--- a/package/Makefile	2012-05-21 13:27:33 +0000
+++ b/package/Makefile	2012-05-29 13:21:14 +0000
@@ -46,7 +46,7 @@
 
 # We define this here instead of directly in the spec file as
 # we need to be able to work out what the produced rpm files will be called
-RPM_PACKAGE_RELEASE=9
+RPM_PACKAGE_RELEASE=10
 
 # Initialize LIB64 to proper value for 64-bit architectures
 export LIB64:=$(shell case `uname -m` in (ppc64 | s390x | x86_64) echo 64 ;; esac)



More information about the lsb-messages mailing list