Network: First commit
Former-commit-id: ec8697acc51569f5043e4f70e4cf42f1c5dc487c
This commit is contained in:
27
include/Nazara/Network/SocketHandle.hpp
Normal file
27
include/Nazara/Network/SocketHandle.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
// Copyright (C) 2015 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Network module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_SOCKETHANDLE_HPP
|
||||
#define NAZARA_SOCKETHANDLE_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
|
||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||
#include <basetsd.h>
|
||||
#endif
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||
using SocketHandle = UINT_PTR;
|
||||
#elif defined(NAZARA_PLATFORM_POSIX)
|
||||
using SocketHandle = int;
|
||||
#else
|
||||
#error Lack of implementation: SocketHandle
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // NAZARA_SOCKETHANDLE_HPP
|
||||
Reference in New Issue
Block a user