~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/splay/attribute.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  align attribut definition (g++)
 
3
  Copyright (C) 2001  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
#ifndef __ATTRIBUTE_H
 
15
#define __ATTRIBUTE_H
 
16
 
 
17
 
 
18
#ifdef HAVE_CONFIG_H
 
19
#include "config.h"
 
20
#endif
 
21
 
 
22
/* use gcc attribs to align critical data structures */
 
23
 
 
24
#ifdef ATTRIBUTE_ALIGNED_MAX
 
25
#define ATTR_ALIGN(align) __attribute__ \
 
26
                          ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX <align) ? \
 
27
                           ATTRIBUTE_ALIGNED_MAX : align)))
 
28
#else
 
29
#define ATTR_ALIGN(align)
 
30
#endif
 
31
 
 
32
 
 
33
#endif