Changeset 3436702 for lib/libtrace.h


Ignore:
Timestamp:
10/26/05 16:32:07 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
767bd50
Parents:
6f75b9d
Message:

autoconf test for attribute((pure))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r6f75b9d r3436702  
    3434#include <sys/types.h>
    3535#include <netinet/in.h>
     36#include "config.h"
    3637
    3738/** API version as 2 byte hex digits, eg 0xXXYYZZ */
     
    4546 * parameters, used to hint gcc's optimisations
    4647 */
    47 #define SIMPLE_FUNCTION __attribute__((pure))
     48#ifdef HAVE_ATTR_PURE
     49#  define SIMPLE_FUNCTION __attribute__((pure))
     50#else
     51#  define SIMPLE_FUNCTION
     52#endif
     53       
    4854
    4955/** @file
Note: See TracChangeset for help on using the changeset viewer.