OSDN Git Service

parted.h: use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE in VC'd files
authorJim Meyering <meyering@redhat.com>
Mon, 9 Jan 2012 18:11:23 +0000 (19:11 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 9 Jan 2012 18:11:23 +0000 (19:11 +0100)
However, we will replace those strings with their expansions when
installing them.
* include/parted/parted.h: Revert part of commit v3.0-83-gd51bfc0.

include/parted/parted.h

index dff6dca..fbcb9aa 100644 (file)
@@ -43,10 +43,7 @@ extern "C" {
 #include <stdlib.h>
 #include <string.h>
 
-extern const char *ped_get_version ()
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
-  __attribute ((__const__));
-#endif
+extern const char *ped_get_version () _GL_ATTRIBUTE_CONST;
 
 extern void* ped_malloc (size_t size);
 extern void* ped_calloc (size_t size);