tags:

views:

25

answers:

1

Hello,

Visual Studio C++ 2008

I have the following code in my server.h file.

#if defined ( __linux__ )
    void* get_info(void*);
#elif defined ( _WIN32)
    void* WINAPI get_info(void*)
#endif

I keep getting the error:

mismatched #if/#endif pair in server.h file

The code looks ok to me, I can't understand why I am getting this error?

Am I missing something?

Many thanks for any advice,

A: 

Sorry I asked this question.

I missed of the #endif at the end of the file for the header file define

i.e.

#ifndef SERVER_INCLUDED
#define SERVER_INCLUDED
.
.
.
#endif /* SERVER_INCLUDED */
robUK