openbsd-ports/astro/luna/patches/patch-luna_h
ajacoutot 0d7bf2810f Some cleaning where needed:
- WANTLIB
- MASTER_SITES
- regen patches
2007-12-18 09:43:36 +00:00

46 lines
1.1 KiB
Plaintext

$OpenBSD: patch-luna_h,v 1.3 2007/12/18 09:43:36 ajacoutot Exp $
--- luna.h.orig Tue Dec 18 09:36:17 2007
+++ luna.h Tue Dec 18 09:36:17 2007
@@ -11,6 +11,7 @@
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
@@ -19,20 +20,18 @@
# include <dos.h>
#endif /* MSDOS */
#include "pyramid.h"
-#include "iprintf/iprint.h"
typedef enum {
FALSE,
TRUE
} BOOLEAN;
-#define printf iprintf
-#define sprintf isprintf
-#define fprintf ifprintf
+extern int getext(int, int, int);
+extern int getmoon(int, int);
+extern int ymd2yday(int, int, int);
-
#if defined(ANSI)
- extern void main(int argc, char **argv);
+ extern int main(int argc, char **argv);
extern void drawluna(int aotmoon);
extern void usage(void);
extern void getoptions(int argc, char **argv,
@@ -40,7 +39,7 @@ typedef enum {
extern int getext(int year, int mon, int day);
extern void printextstate(int age);
#else
- extern void main();
+ extern int main();
extern void drawluna();
extern void usage();
extern void getoptions();