diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/gnuc-attribute.h | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/gnuc-attribute.h')
| -rw-r--r-- | src/gnuc-attribute.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gnuc-attribute.h b/src/gnuc-attribute.h new file mode 100644 index 000000000..4b3e57632 --- /dev/null +++ b/src/gnuc-attribute.h @@ -0,0 +1,11 @@ +/** + * Define _gnuc_attribute(blah) as synonym for __attribute__(blah) on gcc, + * or as nothing on other compilers. + */ +#ifndef _gnuc_attribute +# ifdef __GNUC__ +# define _gnuc_attribute(_attr) __attribute__(_attr) +# else +# define _gnuc_attribute(_attr) +# endif +#endif |
