]> code.delx.au - gnu-emacs/blobdiff - lib-src/fakemail.c
New version.
[gnu-emacs] / lib-src / fakemail.c
index da3911b4b4952ba153a78c8242c9ff4518d9dda5..93e14d7e961a7c12c6b4a9919c77aff158241e22 100644 (file)
@@ -15,7 +15,8 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU Emacs; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
 
 
 #define NO_SHORTNAMES
@@ -49,6 +50,10 @@ main ()
 #undef close
 #endif
 
+#ifdef WINDOWSNT
+#include "ntlib.h"
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
@@ -166,23 +171,23 @@ fatal (s1, s2)
 
 /* Like malloc but get fatal error if memory is exhausted.  */
 
-static char *
+static long *
 xmalloc (size)
      int size;
 {
-  char *result = (char *) malloc (((unsigned) size));
-  if (result == ((char *) NULL))
+  long *result = (long *) malloc (((unsigned) size));
+  if (result == ((long *) NULL))
     fatal ("virtual memory exhausted", 0);
   return result;
 }
 
-static char *
+static long *
 xrealloc (ptr, size)
-     char *ptr;
+     long *ptr;
      int size;
 {
-  char *result = (char *) realloc (ptr, ((unsigned) size));
-  if (result == ((char *) NULL))
+  long *result = (long *) realloc (ptr, ((unsigned) size));
+  if (result == ((long *) NULL))
     fatal ("virtual memory exhausted");
   return result;
 }