mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-24 02:18:57 +00:00
Shuffled where various compatibility items of code are amongst the headers in msvc directory so: Not too many warnings are disabled in source file that includes spandsp.h A copy of the msvc/spandsp.h file to spandsp/src directory so project that uses it only needs to add one directory to search, or can even just explicitly put the path in for the spandsp.h file. Removal of need for windows.h to be implicitly included by user source file via spandsp.h, can cause conflicts. Some symbol conflicts with other libraries. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12272 d0543943-73ff-0310-b7d9-9358b9ac24b2
35 lines
655 B
C
35 lines
655 B
C
/*
|
|
* SpanDSP - a series of DSP components for telephony
|
|
*
|
|
* unistd.h - a fudge for MSVC, which lacks this header
|
|
*
|
|
* Written by Steve Underwood <steveu@coppice.org>
|
|
*
|
|
* Copyright (C) 2006 Michael Jerris
|
|
*
|
|
*
|
|
* This file is released in the public domain.
|
|
*
|
|
*/
|
|
|
|
#if !defined(_UNISTD_H_)
|
|
#define _UNISTD_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Declare this so we don't have to include winsock.h, it causes numerous conflicts.
|
|
extern int __stdcall gethostname(char * name, int namelen);
|
|
#pragma comment(lib, "ws2_32.lib")
|
|
|
|
extern int getopt(int argc, char *argv[], char *opstring);
|
|
|
|
extern char *optarg;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|