Index: trunk/Ohana/src/libautocode/def/common.h
===================================================================
--- trunk/Ohana/src/libautocode/def/common.h	(revision 3536)
+++ trunk/Ohana/src/libautocode/def/common.h	(revision 3609)
@@ -1,5 +1,7 @@
-# include <stdio.h>
-# include <stdarg.h>
-# include <fitsio.h>
+# include <ohana.h>
+
+# ifndef AUTOCODE_H
+# define AUTOCODE_H
+/* matched endif is added by Makefile */
 
 # ifndef TRUE
@@ -32,4 +34,9 @@
 
 # define e_time unsigned int
+# define rawshort short
+
+/*** rawshort is used to handle the broken pre-autocode photreg tables
+     fix the tables and remove this
+***/
 
 /*** this file uses data types which must have fixed sizes regardless 
