]> granicus.if.org Git - openjpeg/commitdiff
[trunk] rename deprecated macro with opj_ prefix and use it for opj_stream_destroy...
authorMickael Savinaud <savmickael@users.noreply.github.com>
Sat, 16 Feb 2013 17:31:22 +0000 (17:31 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Sat, 16 Feb 2013 17:31:22 +0000 (17:31 +0000)
src/lib/openjp2/openjpeg.h

index e2657ae42daf749b15ed0b6994cfeb63e051db30..2b6c451815727a1d6a156ab1562c69be9a4f2ca1 100644 (file)
 #ifdef __GNUC__
        #define DEPRECATED(func) func __attribute__ ((deprecated))
 #elif defined(_MSC_VER)
-       #define DEPRECATED(func) __declspec(deprecated) func
+       #define OPJ_DEPRECATED(func) __declspec(deprecated) func
 #else
        #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
-       #define DEPRECATED(func) func
+       #define OPJ_DEPRECATED(func) func
 #endif
 
 #if defined(OPJ_STATIC) || !defined(_WIN32)
@@ -1004,7 +1004,7 @@ OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create(OPJ_SIZE_T p_buffer_size, O
  *
  * @param      p_stream        the stream to destroy.
  */
-OPJ_API void OPJ_CALLCONV opj_stream_destroy(opj_stream_t* p_stream);
+OPJ_DEPRECATED(OPJ_API void OPJ_CALLCONV opj_stream_destroy(opj_stream_t* p_stream));
 OPJ_API void OPJ_CALLCONV opj_stream_destroy_v3(opj_stream_t* p_stream);
  
 /**