~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to plugins/experimental/header_rewrite/lulu.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-05-09 01:00:04 UTC
  • mto: (1.1.11) (5.3.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130509010004-9fqq9n0adseg3f8w
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef __LULU_H__
23
23
#define __LULU_H__ 1
24
24
 
25
 
// Define UNUSED properly.
26
 
#if ((__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
27
 
#define UNUSED __attribute__ ((unused))
28
 
#else
29
 
#define UNUSED
30
 
#endif /* #if ((__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7))) */
31
 
 
32
 
static char UNUSED rcsId__lulu_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
33
 
 
34
25
#include <sys/types.h>
35
26
 
 
27
#include "ink_defs.h"
 
28
 
36
29
// Memory barriers on i386 / linux / gcc
37
30
#if defined(__i386__)
38
31
#define mb()  __asm__ __volatile__ ( "lock; addl $0,0(%%esp)" : : : "memory" )