Changeset 6ed6c4a for lib/libtrace_int.h


Ignore:
Timestamp:
01/17/07 16:51:08 (15 years ago)
Author:
Brendon Jones <brendonj@…>
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:
d5a27e8
Parents:
8d504c1
Message:

Windows portability fixes.

Windows doesn't have a gettimeofday function, provided an alternate
path that uses _ftime with _timeb structs. This only provides
millisecond resolution rather than microsecond.

Added a few checks to make sure headers that aren't present in
Windows don't get included.

Added new files to the Visual Studio project/solution.

Modified the windows config file to include a few more #defines that
were needed to make pcap support build properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    r4746c71 r6ed6c4a  
    4242
    4343#ifdef _MSC_VER
     44// warning: deprecated function
    4445#pragma warning(disable:4996)
     46// warning: benign redefinitions of types
     47#pragma warning(disable:4142)
    4548#endif
    4649
     
    371374void *trace_get_payload_from_linux_sll(void *, uint16_t *, uint32_t *);
    372375void *trace_get_payload_from_pos(void *, uint16_t *, uint32_t *);
    373 void *trace_get_payload_from_atm(void *, uint8_t *, uint32_t *);
     376DLLEXPORT void *trace_get_payload_from_atm(void *, uint8_t *, uint32_t *);
    374377
    375378uint64_t byteswap64(uint64_t num);
Note: See TracChangeset for help on using the changeset viewer.