~kawninzx6/libiqxmlrpc/streamInsertOp

« back to all changes in this revision

Viewing changes to libiqxmlrpc/net_except.cc

  • Committer: Anton Dedov
  • Date: 2010-07-26 20:35:31 UTC
  • Revision ID: adedov@gmail.com-20100726203531-5unndog5yqha83ws
Merge with mine adjustments:
 622. By james <james@jnb>  on 2010-06-04
 Refactore includes to fix Windows compile errors.
 lp:~kawninzx6/libiqxmlrpc/windowsBuild

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
//
18
18
//  $Id: net_except.cc,v 1.5 2006-09-07 09:35:42 adedov Exp $
19
19
 
 
20
#include "net_except.h"
 
21
 
20
22
#include <string.h>
21
 
#include "sysinc.h"
22
 
#include "net_except.h"
23
23
 
24
24
namespace {
25
25
 
36
36
    buf[255] = 0;
37
37
    char* b = buf;
38
38
 
39
 
#if not defined _WINDOWS && defined _GNU_SOURCE
 
39
#if !defined _WINDOWS && defined _GNU_SOURCE
40
40
    b = strerror_r( errno, buf, sizeof(buf) - 1 );
41
 
#elif not defined _WINDOWS
 
41
#elif !defined _WINDOWS
42
42
    strerror_r( errno, buf, sizeof(buf) - 1 );
43
43
#else
44
44
    strerror_s( buf, sizeof(buf) - 1, WSAGetLastError() );