[AD] Docs fail to build (make_doc.c) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Allegro Developers <allegro-developers@xxxxxxxxxx>
- Subject: [AD] Docs fail to build (make_doc.c)
- From: Edgar Reynaldo <edgarreynaldo@xxxxxxxxxx>
- Date: Thu, 19 Jan 2017 22:33:34 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=members-allegro-cc.20150623.gappssmtp.com; s=20150623; h=from:to:subject:message-id:date:user-agent:mime-version; bh=XTTUdpRIsHX1gQDMHaNnzqJpQ0jjLMd3CkasT5qYfJU=; b=PlqZWFxzCuYMo8D43m/Cou8hIrDNSv8JqM5a9B4KPJ6M9dq3aI3hsbfvJnlVz+uRXU fyW537xxa9Ft1anprrRpxp2wN0c0pJpjzT/wpqFQvfPWGiR3smu4ndLfjLMhSVrHx+Kb a9n2zvO3HsSZvGkTUIoqoS7aOVA8bYiPFJbShowjRuCvU82IUpYWiHC8BJGFwCo7w5AB CkJyQ3Bl3DMikoMdgbXuxBYmHaUU2xvSfbQ4HLAUNAi/eZ1FLLrW6f54gv4MHaPHdmEZ rpbQSlsSGNthV/UBVx4Huvk3REqywJcy1BMpLtTlTGi0O7t9RNgnhdXBHdd5J+KBmh0q IsMA==
Hi guys,
In latest git, system.html fails to build correctly due to a bug in
make_doc.c. The allegro5.cfg file is opened in "r" mode and not "rb"
mode, so ftell does not correctly report the length of the file and it
causes it to abort when building system.html.
Patch attached.
docs/scripts/make_doc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/scripts/make_doc.c b/docs/scripts/make_doc.c
index ba3d029..5075f70 100644
--- a/docs/scripts/make_doc.c
+++ b/docs/scripts/make_doc.c
@@ -158,7 +158,7 @@ static void load_prototypes(const char *filename)
char *load_allegro5_cfg(void)
{
- FILE *f = fopen(allegro5_cfg_filename, "r");
+ FILE *f = fopen(allegro5_cfg_filename, "rb");
if (!f) {
d_abort("could not open file for reading: ", allegro5_cfg_filename);
}