mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Moved Unix support
Networking.h is imported by everything.
This commit is contained in:
parent
803c6f41d7
commit
4e84497a68
|
@ -23,12 +23,6 @@
|
|||
|
||||
#ifndef TOX_H
|
||||
#define TOX_H
|
||||
|
||||
#ifdef PLAN9
|
||||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(_WIN32) || defined(__WIN32__) || defined (WIN32)
|
||||
|
@ -62,18 +56,6 @@ typedef short sa_family_t;
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__AIX__)
|
||||
# define _XOPEN_SOURCE 1
|
||||
#endif
|
||||
|
||||
#if defined(__sun__)
|
||||
#define __EXTENSIONS__ 1 /* SunOS */
|
||||
#if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) || defined(__SunOS5_9__) || defined(__SunOS5_10__)
|
||||
//Nothing needed
|
||||
#else
|
||||
#define __MAKECONTEXT_V2_SOURCE 1
|
||||
#endif
|
||||
|
||||
#define TOX_MAX_NAME_LENGTH 128
|
||||
#define TOX_MAX_STATUSMESSAGE_LENGTH 128
|
||||
#define TOX_CLIENT_ID_SIZE 32
|
||||
|
|
Loading…
Reference in New Issue
Block a user