Changeset 4477

Show
Ignore:
Timestamp:
07/15/09 10:40:41 (5 years ago)
Author:
douglask
Message:

On windows, include process.h for it's declaration of getpid() instead of using a local declaration which doesn't match the one in the library.

Location:
vic/branches/mpeg4
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/config.h

    r4409 r4477  
    160160#include <memory.h> 
    161161#include <errno.h> 
     162#include <process.h> 
    162163#include <math.h> 
    163164#include <stdlib.h>   /* abs() */ 
     
    309310int getuid(void); 
    310311int getgid(void); 
    311 int getpid(void); 
     312#define getpid _getpid 
    312313int nice(int); 
    313314int sendmsg(int, struct msghdr*, int); 
  • vic/branches/mpeg4/rtp/session.cpp

    r4445 r4477  
    3636#include <string.h> 
    3737#ifdef WIN32 
    38 extern "C" int getpid(); 
     38#include <process.h> 
    3939#endif 
    4040#include "source.h"