summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-02 20:12:15 +0100
committerPeter Powell <petpow@saberuk.com>2013-04-12 17:03:05 +0100
commit11cafc12d5440b67a9f676c9f6aa67840ca5399d (patch)
tree7c8eac3b1ad474fdaf42767bffee7c3c4b4cce48 /configure
parenta5fe50aca04ca554d313e7361c571c6a497a9c4e (diff)
Tidy up source files:
- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure b/configure
index 3e5b517c6..1dc6b3ef1 100755
--- a/configure
+++ b/configure
@@ -876,8 +876,7 @@ sub writefiles {
open(FILEHANDLE, ">include/config.h.tmp");
print FILEHANDLE <<EOF;
/* Auto generated by configure, do not modify! */
-#ifndef __CONFIGURATION_AUTO__
-#define __CONFIGURATION_AUTO__
+#pragma once
#define BRANCH "$branch"
#define VERSION "$version"
@@ -946,7 +945,7 @@ print FILEHANDLE "#define MAXBUF " . ($config{MAXBUF}+2) . "\n";
$config{SOCKETENGINE} = "socketengine_select";
}
}
- print FILEHANDLE "\n#include \"threadengines/threadengine_pthread.h\"\n\n#endif\n";
+ print FILEHANDLE "\n#include \"threadengines/threadengine_pthread.h\"\n";
close(FILEHANDLE);
my $file = 'include/config.h';