Skip to content

implemented the #pragma once to the compiler #704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions include/amxdll.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* (c) Copyright 2000-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _amxdll_included
#endinput
#endif
#define _amxdll_included
#pragma once

enum
{
Expand Down
5 changes: 1 addition & 4 deletions include/args.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _args_included
#endinput
#endif
#define _args_included
#pragma once
#pragma library Args

native argcount();
Expand Down
5 changes: 1 addition & 4 deletions include/console.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 1998-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _console_included
#endinput
#endif
#define _console_included
#pragma once
#pragma library Console

enum
Expand Down
5 changes: 1 addition & 4 deletions include/core.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 1998-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _core_included
#endinput
#endif
#define _core_included
#pragma once
#pragma library Core

native heapspace();
Expand Down
5 changes: 1 addition & 4 deletions include/datagram.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _datagram_included
#endinput
#endif
#define _datagram_included
#pragma once
#pragma library DGram

native sendstring(const message[], const destination[]="");
Expand Down
5 changes: 1 addition & 4 deletions include/file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 2004-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _file_included
#endinput
#endif
#define _file_included
#pragma once
#pragma library File

enum filemode
Expand Down
5 changes: 1 addition & 4 deletions include/fixed.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 1998-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _Fixed_included
#endinput
#endif
#define _Fixed_included
#pragma once
#pragma library Fixed

enum fround_method {
Expand Down
5 changes: 1 addition & 4 deletions include/process.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* (c) Copyright 2006, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _process_included
#endinput
#endif
#define _process_included
#pragma once
#pragma library Process

native libcall(const libname[], const funcname[], const typestring[], ...);
Expand Down
5 changes: 1 addition & 4 deletions include/rational.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* (c) Copyright 2004-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _Rational_included
#endinput
#endif
#define _Rational_included
#pragma once

/* first try to include floating point support */
#if !defined NOFLOAT
Expand Down
5 changes: 1 addition & 4 deletions include/string.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _string_included
#endinput
#endif
#define _string_included
#pragma once
#pragma library String

native strlen(const string[]);
Expand Down
5 changes: 1 addition & 4 deletions include/time.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* (c) Copyright 2001-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _time_included
#endinput
#endif
#define _time_included
#pragma once
#pragma library Time

native gettime(&hour=0, &minute=0, &second=0);
Expand Down
Loading