1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00

USe pragma once.

This commit is contained in:
Sandu Liviu Catalin 2020-04-27 11:06:51 +03:00
parent 94ef17c26f
commit df7c5f8266
5 changed files with 6 additions and 23 deletions

View File

@ -40,8 +40,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
#ifndef __ACTIVESOCKET_H__ #pragma once
#define __ACTIVESOCKET_H__
#include "SimpleSocket.h" #include "SimpleSocket.h"
@ -86,6 +85,3 @@ private:
private: private:
struct hostent *m_pHE; struct hostent *m_pHE;
}; };
#endif /* __ACTIVESOCKET_H__ */

View File

@ -41,8 +41,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
#ifndef __HOST_H__ #pragma once
#define __HOST_H__
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -209,5 +208,3 @@
#define VPRINTF vprintf #define VPRINTF vprintf
#define FPRINTF fprintf #define FPRINTF fprintf
#endif #endif
#endif /* __HOST_H__ */

View File

@ -40,8 +40,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
#ifndef __PASSIVESOCKET_H__ #pragma once
#define __PASSIVESOCKET_H__
#include "ActiveSocket.h" #include "ActiveSocket.h"
/// Provides a platform independent class to create a passive socket. /// Provides a platform independent class to create a passive socket.
@ -115,5 +115,3 @@ private:
struct ip_mreq m_stMulticastRequest; /// group address for multicast struct ip_mreq m_stMulticastRequest; /// group address for multicast
}; };
#endif // __PASSIVESOCKET_H__

View File

@ -40,8 +40,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
#ifndef __SOCKET_H__ #pragma once
#define __SOCKET_H__
#ifdef _LINUX #ifdef _LINUX
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
@ -581,7 +580,3 @@ protected:
fd_set m_readFds; /// read file descriptor set fd_set m_readFds; /// read file descriptor set
fd_set m_errorFds; /// error file descriptor set fd_set m_errorFds; /// error file descriptor set
}; };
#endif /* __SOCKET_H__ */

View File

@ -40,8 +40,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
#ifndef __CSTATTIMER_H__ #pragma once
#define __CSTATTIMER_H__
#include <string.h> #include <string.h>
@ -111,5 +110,3 @@ private:
struct timeval m_startTime; struct timeval m_startTime;
struct timeval m_endTime; struct timeval m_endTime;
}; };
#endif // __CSTATTIMER_H__