Sha256: b8be4fa53fdf21668bbdc99f50e2d9bda707925553dd29f0307701e20fc23c87

Contents?: true

Size: 1.46 KB

Versions: 17

Compression:

Stored size: 1.46 KB

Contents

#ifndef _RHOPORT_H_
#define _RHOPORT_H_

#include "RhoDefs.h"

#if defined( OS_WINDOWS ) || defined( OS_WINCE )

#include <windows.h>
#include <time.h>

#define LOG_NEWLINE "\r\n"
#define LOG_NEWLINELEN 2

//typedef __int32 int32;
//typedef unsigned __int32 uint32;
typedef __int64 int64;
typedef unsigned __int64 uint64;

#define strcasecmp _stricmp
#define snprintf _snprintf
#else
#  if defined(OS_ANDROID)
// Needed for va_list on Android
#    include <stdarg.h>
#    include <sys/select.h>
#    include <stdio.h>
#  else
#    include <wchar.h>
#  endif // OS_ANDROID
#  include <sys/types.h>
#  include <sys/socket.h>
#  include <netinet/in.h>
#  include <unistd.h>
#  include <errno.h>
#  if defined(OS_MACOSX)
#    include <sys/time.h>
#  endif
#  include <stdlib.h>
#  include <string.h>
#  include <pthread.h>
#  include <fcntl.h>

#undef ASSERT
#define ASSERT RHO_ASSERT

#define LOG_NEWLINE "\n"
#define LOG_NEWLINELEN 1

//typedef int32_t int32;
//typedef uint32_t uint32;
typedef long long int64;
typedef unsigned long long uint64;

#endif 

#if defined( OS_WINCE )
#  define	vsnprintf	_vsnprintf
#  define	vswnprintf	_vsnwprintf
#elif defined( OS_ANDROID )
RHO_GLOBAL int vswnprintf(wchar_t *, size_t, const wchar_t *, void *);
#else
#  define	vswnprintf vswprintf
#endif //OS_WINCE

//#include "tcmalloc/rhomem.h"

#ifdef __cplusplus
extern "C" {
#endif
	
char* str_assign_ex( char* data, int len); 
char* str_assign(char* data); 
#ifdef __cplusplus
}
#endif
		
	
#endif //_RHOPORT_H_

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rhodes-2.0.0.rc1 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta11 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta10 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta9 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta8 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta7 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta6 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta4 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta3 platform/shared/common/RhoPort.h
rhodes-1.5.5 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta2 platform/shared/common/RhoPort.h
rhodes-2.0.0.beta1 platform/shared/common/RhoPort.h
rhodes-1.5.4 platform/shared/common/RhoPort.h
rhodes-1.5.3 platform/shared/common/RhoPort.h
rhodes-1.5.2 platform/shared/common/RhoPort.h
rhodes-1.5.1 platform/shared/common/RhoPort.h
rhodes-1.5.0 platform/shared/common/RhoPort.h