~ubuntu-branches/ubuntu/quantal/libsamplerate/quantal

« back to all changes in this revision

Viewing changes to src/common.h

  • Committer: Package Import Robot
  • Author(s): Erik de Castro Lopo
  • Date: 2011-08-16 18:32:49 UTC
  • mfrom: (1.1.6 upstream) (4.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20110816183249-9vbim26wlxvjsq04
Tags: 0.1.8-1
* New upstream (Closes: #637691).
* debian/patches/ : Remove uneeded patches (fixed upstream).
* debian/control : Remove quilt from build-deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
** Copyright (C) 2002-2008 Erik de Castro Lopo <erikd@mega-nerd.com>
 
2
** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
3
3
**
4
4
** This program is free software; you can redistribute it and/or modify
5
5
** it under the terms of the GNU General Public License as published by
17
17
*/
18
18
 
19
19
/*
20
 
** This code is part of Secret Rabibt Code aka libsamplerate. A commercial
 
20
** This code is part of Secret Rabbit Code aka libsamplerate. A commercial
21
21
** use license for this code is available, please see:
22
22
**              http://www.mega-nerd.com/SRC/procedure.html
23
23
*/
46
46
 
47
47
#define MAKE_MAGIC(a,b,c,d,e,f) ((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))
48
48
 
 
49
/*
 
50
** Inspiration : http://sourcefrog.net/weblog/software/languages/C/unused.html
 
51
*/
 
52
#ifdef UNUSED
 
53
#elif defined (__GNUC__)
 
54
#       define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))
 
55
#elif defined (__LCLINT__)
 
56
#       define UNUSED(x) /*@unused@*/ x
 
57
#else
 
58
#       define UNUSED(x) x
 
59
#endif
 
60
 
49
61
#ifdef __GNUC__
50
62
#       define WARN_UNUSED      __attribute__ ((warn_unused_result))
51
63
#else